diff --git a/src/hoiformat/hoiparser.ts b/src/hoiformat/hoiparser.ts index 1b4f61c..1b9037d 100644 --- a/src/hoiformat/hoiparser.ts +++ b/src/hoiformat/hoiparser.ts @@ -106,7 +106,7 @@ function tokenizer(input: string, tokenRegexStrings: Record = { comment: ['#.*(?:[\\r\\n]|$)', 0], - symbol: ['(?:\\d+\\.)?[a-zA-Z_@\\[\\]][\\w:\\._@\\[\\]\\-\\?\\^\\/\\u00A0-\\u024F]*', 40], + symbol: ['(?:\\d+\\.)?[a-zA-Z_@\\[\\]][\\w:\\._@\\[\\]\\-\\?\\^\\/\\u00A0-\\u024F|]*', 40], operator: ['[={}<>;,]|>=|<=|!=', 10], string: ['"(?:\\\\"|\\\\\\\\|[^"])*"', 10], number: ['-?\\d*\\.\\d+|-?\\d+|0x\\d+', 50],