mirror of
https://github.com/janet-lang/janet
synced 2025-11-29 21:45:14 +00:00
Make parser errors a bit better for files with no closing
delimiters.
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
(defn check-number [text] (and (scan-number text) text))
|
||||
|
||||
(defn- make-grammar
|
||||
"Creates the grammar based on the paint function and some
|
||||
wraping constants."
|
||||
"Creates the grammar based on the paint function, which
|
||||
colorizes fragments of text."
|
||||
[paint]
|
||||
|
||||
(defn <-c
|
||||
@@ -128,19 +128,6 @@
|
||||
</style>
|
||||
```)
|
||||
|
||||
(def- html-boiler-prefix
|
||||
```<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
```)
|
||||
|
||||
(defn- html-escape
|
||||
"Escape special characters for HTML encoding."
|
||||
[str]
|
||||
|
||||
Reference in New Issue
Block a user