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+"