From be6f2d125a8ffe70ceb336051da6a161ce9cf1bc Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Fri, 24 Jun 2022 16:47:45 +0200 Subject: [PATCH] fix: Highlight unicode characters in Python function and class names --- lib/ace/mode/python_highlight_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/python_highlight_rules.js b/lib/ace/mode/python_highlight_rules.js index 2e8f9044ed6..393f8187d10 100644 --- a/lib/ace/mode/python_highlight_rules.js +++ b/lib/ace/mode/python_highlight_rules.js @@ -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+"