Skip to content

Commit

Permalink
Merge pull request #3 from Unpredictability/patch-1
Browse files Browse the repository at this point in the history
tex parser should recognize the colon mark `:`
  • Loading branch information
qwinsi authored Jan 16, 2025
2 parents 7b6e62d + 402358e commit a237c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tex-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export function tokenize(latex: string): TexToken[] {
token = new TexToken(TexTokenType.ELEMENT, latex.slice(pos, newPos));
} else if (isalpha(firstChar)) {
token = new TexToken(TexTokenType.ELEMENT, firstChar);
} else if ('+-*/=\'<>!.,;?()[]|'.includes(firstChar)) {
} else if ('+-*/=\'<>!.,;:?()[]|'.includes(firstChar)) {
token = new TexToken(TexTokenType.ELEMENT, firstChar)
} else {
token = new TexToken(TexTokenType.UNKNOWN, firstChar);
Expand Down

0 comments on commit a237c6f

Please sign in to comment.