Skip to content

Commit 36b790b

Browse files
committed
fix error messages
1 parent 8b90cf5 commit 36b790b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dictionary/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const semicolon = lex(matchString(";", "semicolon"));
6262
const slash = lex(matchString("/", "slash"));
6363

6464
const keyword = memoize(<T extends string>(keyword: T) =>
65-
lex(withPosition(match(/[a-z\-]+/, keyword)))
65+
lex(withPosition(match(/[a-z\-]+/, `"${keyword}"`)))
6666
.map((positioned) =>
6767
positioned.value === keyword ? positioned.value : throwError(
6868
new UnexpectedError(

0 commit comments

Comments
 (0)