From 9d38f29d6f08fb874592201f709b8a13eb1e93ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20L=C3=B6ffler?= Date: Thu, 12 Dec 2019 11:39:47 +0100 Subject: [PATCH] Fix highlighting of commands including non-ASCII letters (fixes #67) With the migration from QRegExp to QRegularExpression in 481eb4e, unicode character classes can now be used in the syntax pattern definitions. --- res/resfiles/configuration/syntax-patterns.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/resfiles/configuration/syntax-patterns.txt b/res/resfiles/configuration/syntax-patterns.txt index 724ecafb7..0fc33f840 100644 --- a/res/resfiles/configuration/syntax-patterns.txt +++ b/res/resfiles/configuration/syntax-patterns.txt @@ -42,7 +42,7 @@ darkgreen N \\(?:begin|end)\s*\{[^\}]*\} darkblue N \\usepackage\s*(?:\[[^\]]*\]\s*)?\{[^\}]*\} # control sequences -blue N \\(?:[A-Za-z@]+|.) +blue N \\(?:[\p{L}@]+|.) # comments red Y %.* @@ -61,7 +61,7 @@ gray N [\-+/^_] darkgreen;B N \\(?:start|stop)[A-Za-z]+ # control sequences -blue;B N \\(?:[A-Za-z@]+|.) +blue;B N \\(?:[\p{L}@]+|.) # comments red Y %.* @@ -105,7 +105,7 @@ green N \\(?:begin|end)\{macrocode\} darkgreen N \\(?:begin|end)\s*\{[^}]*\} # control sequences -blue N \\(?:[A-Za-z@:_]+|.) +blue N \\(?:[\p{L}@:_]+|.) [Lua]