Skip to content

Commit be6f2d1

Browse files
committed
fix: Highlight unicode characters in Python function and class names
1 parent 915fcaf commit be6f2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ace/mode/python_highlight_rules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var PythonHighlightRules = function() {
171171
regex: "[\\]\\)\\}]"
172172
}, {
173173
token: ["keyword", "text", "entity.name.function"],
174-
regex: "(def|class)(\\s+)(\\w+)"
174+
regex: "(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"
175175
}, {
176176
token: "text",
177177
regex: "\\s+"

0 commit comments

Comments
 (0)