We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78826c7 commit cbd5114Copy full SHA for cbd5114
dictionary/parser.ts
@@ -32,30 +32,8 @@ import {
32
VerbForms,
33
} from "./type.ts";
34
35
-const RESERVED_SYMBOLS = [
36
- "#",
37
- "(",
38
- ")",
39
- "*",
40
- "+",
41
- "/",
42
- ":",
43
- ";",
44
- "<",
45
- "=",
46
- ">",
47
- "@",
48
- "[",
49
- "\\",
50
- "]",
51
- "^",
52
- "`",
53
- "{",
54
- "|",
55
- "}",
56
- "~",
57
-];
58
-const WORDS = new RegExp(`[^${escapeRegex(RESERVED_SYMBOLS.join(""))}]`);
+const RESERVED_SYMBOLS = "#()*+/:;<=>@[\\]^`{|}~";
+const WORDS = new RegExp(`[^${escapeRegex(RESERVED_SYMBOLS)}]`);
59
60
const comment = match(/#[^\n\r]*/, "comment");
61
const spaces = sourceOnly(all(choiceOnlyOne(match(/\s/, "space"), comment)));
0 commit comments