We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b90cf5 commit 36b790bCopy full SHA for 36b790b
dictionary/parser.ts
@@ -62,7 +62,7 @@ const semicolon = lex(matchString(";", "semicolon"));
62
const slash = lex(matchString("/", "slash"));
63
64
const keyword = memoize(<T extends string>(keyword: T) =>
65
- lex(withPosition(match(/[a-z\-]+/, keyword)))
+ lex(withPosition(match(/[a-z\-]+/, `"${keyword}"`)))
66
.map((positioned) =>
67
positioned.value === keyword ? positioned.value : throwError(
68
new UnexpectedError(
0 commit comments