Skip to content

Commit bfc0a1d

Browse files
committed
avoid losing space in definition parsing
1 parent ccef500 commit bfc0a1d

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
@@ -42,14 +42,14 @@ function lex<T>(parser: Parser<T>): Parser<T> {
4242
const comment = match(/#[^\n\r]*/, "comment");
4343
const spaces = sourceOnly(all(choiceOnlyOne(match(/\s/, "space"), comment)));
4444
const backtick = matchString("`", "backtick");
45+
const colon = matchString(":", "colon");
4546

4647
const tokiPonaWord = lex(match(/[a-z][a-zA-Z]*/, "word"));
4748
const openParenthesis = lex(matchString("(", "open parenthesis"));
4849
const closeParenthesis = lex(matchString(")", "close parenthesis"));
4950
const openBracket = lex(matchString("[", "open bracket"));
5051
const closeBracket = lex(matchString("]", "close bracket"));
5152
const comma = lex(matchString(",", "comma"));
52-
const colon = lex(matchString(":", "colon"));
5353
const semicolon = lex(matchString(";", "semicolon"));
5454
const slash = lex(matchString("/", "slash"));
5555

0 commit comments

Comments
 (0)