diff --git a/src/parse/TokenVocabParser.ts b/src/parse/TokenVocabParser.ts index c4dbed7..e74cb62 100644 --- a/src/parse/TokenVocabParser.ts +++ b/src/parse/TokenVocabParser.ts @@ -15,7 +15,7 @@ import { Constants } from "../Constants.js"; import { ErrorType } from "../tool/ErrorType.js"; import type { IGrammar } from "../types.js"; -const linePattern = /(?[^\n]+?)[ \\t]*?=[ \\t]*?(?[0-9]+)/; +const linePattern = /(?[^\n]+)[ \\t]*=[ \\t]*?(?[0-9]+)/; export class TokenVocabParser { protected readonly g: IGrammar;