From 9c509ed06d2a5762e4f160bc86683d4833d1bd66 Mon Sep 17 00:00:00 2001 From: Shirai_Kuroko <73374735+IShiraiKurokoI@users.noreply.github.com> Date: Sat, 7 Dec 2024 15:21:16 +0000 Subject: [PATCH] fix |dam parse (#105) --- src/hoiformat/hoiparser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],