diff --git a/src/tokens.ts b/src/tokens.ts index fb5d162..7a1081b 100644 --- a/src/tokens.ts +++ b/src/tokens.ts @@ -308,7 +308,8 @@ export function tokensFor(d: Dialect) { input.acceptToken(Punctuation) } else if (isAlpha(next)) { let word = readWord(input, String.fromCharCode(next)) - input.acceptToken(input.next == Ch.Dot ? Identifier : d.words[word.toLowerCase()] ?? Identifier) + input.acceptToken(input.next == Ch.Dot || input.peek(-word.length - 1) == Ch.Dot + ? Identifier : d.words[word.toLowerCase()] ?? Identifier) } }) }