Skip to content

Commit

Permalink
fix: Highlight unicode characters in Python function and class names
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Jun 24, 2022
1 parent 915fcaf commit be6f2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ace/mode/python_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var PythonHighlightRules = function() {
regex: "[\\]\\)\\}]"
}, {
token: ["keyword", "text", "entity.name.function"],
regex: "(def|class)(\\s+)(\\w+)"
regex: "(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"
}, {
token: "text",
regex: "\\s+"
Expand Down

0 comments on commit be6f2d1

Please sign in to comment.