Skip to content

Commit

Permalink
Fix highlighting of commands including non-ASCII letters (fixes #67)
Browse files Browse the repository at this point in the history
With the migration from QRegExp to QRegularExpression in 481eb4e,
unicode character classes can now be used in the syntax pattern
definitions.
  • Loading branch information
stloeffler committed Dec 12, 2019
1 parent 1e3131a commit 9d38f29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/resfiles/configuration/syntax-patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 %.*
Expand All @@ -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 %.*
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 9d38f29

Please sign in to comment.