diff options
author | Dietmar Winkler <dietmar.winkler@dwe.no> | 2014-04-21 00:45:11 +0200 |
---|---|---|
committer | Dietmar Winkler <dietmar.winkler@dwe.no> | 2014-04-21 00:45:11 +0200 |
commit | aab94617543ebc97a32614f7585bdee58b2bd090 (patch) | |
tree | f7cf4a24e190ea989b59afa58e6dc05ffe9542bc /pygments/lexers/other.py | |
parent | 31bf9c05839dcd4254b02ece7c0ace7260700700 (diff) | |
download | pygments-aab94617543ebc97a32614f7585bdee58b2bd090.tar.gz |
Add "for" on the exclude list for highlighting class names.
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r-- | pygments/lexers/other.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 25a146ac..306ae326 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -1347,8 +1347,9 @@ class ModelicaLexer(RegexLexer): r'terminate)\b', Name.Builtin), ], 'classes': [ - (r'(operator)?(\s+)?(block|class|connector|end|function|model|operator|package|' - r'record|type)(\s+)((?!if|when|while)[A-Za-z_]\w*|[\'][^\']+[\'])([;]?)', + (r'(operator)?(\s+)?(block|class|connector|end|function|model|' + r'operator|package|record|type)(\s+)' + r'((?!if|for|when|while)[A-Za-z_]\w*|[\'][^\']+[\'])([;]?)', bygroups(Keyword, Text, Keyword, Text, Name.Class, Text)) ], 'quoted_ident': [ |