Skip to content

Commit

Permalink
fix |dam parse (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
IShiraiKurokoI authored Dec 7, 2024
1 parent 5fffc97 commit 9c509ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hoiformat/hoiparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function tokenizer<T extends string>(input: string, tokenRegexStrings: Record<T,
type HOITokenType = 'comment' | 'symbol' | 'operator' | 'string' | 'number' | 'unitnumber' | 'eof';
const tokenRegexStrings: Record<HOITokenType, [string, number]> = {
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],
Expand Down

0 comments on commit 9c509ed

Please sign in to comment.