@fc-components/monaco-editor
Advanced tools
+1
-1
@@ -6,3 +6,3 @@ { | ||
| }, | ||
| "version": "0.4.3", | ||
| "version": "0.4.4", | ||
| "license": "MIT", | ||
@@ -9,0 +9,0 @@ "main": "dist/index.js", |
@@ -360,7 +360,7 @@ /** | ||
| private isIdentStart(ch: string): boolean { | ||
| return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || ch === '_' || ch === '$'; | ||
| return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || ch === '_' || ch === '$' || isUnicodeLetter(ch); | ||
| } | ||
| private isIdentPart(ch: string): boolean { | ||
| return this.isIdentStart(ch) || this.isDigit(ch); | ||
| return this.isIdentStart(ch) || this.isDigit(ch) || isUnicodeDigit(ch); | ||
| } | ||
@@ -379,1 +379,11 @@ | ||
| } | ||
| /** Check if a character is a Unicode letter (including Chinese, Japanese, etc.) */ | ||
| function isUnicodeLetter(ch: string): boolean { | ||
| return /\p{L}/u.test(ch); | ||
| } | ||
| /** Check if a character is a Unicode digit */ | ||
| function isUnicodeDigit(ch: string): boolean { | ||
| return /\p{N}/u.test(ch); | ||
| } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2560155
1.33%27119
0.53%