summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorDietmar Winkler <dietmar.winkler@dwe.no>2014-04-21 00:45:11 +0200
committerDietmar Winkler <dietmar.winkler@dwe.no>2014-04-21 00:45:11 +0200
commitaab94617543ebc97a32614f7585bdee58b2bd090 (patch)
treef7cf4a24e190ea989b59afa58e6dc05ffe9542bc /pygments/lexers/other.py
parent31bf9c05839dcd4254b02ece7c0ace7260700700 (diff)
downloadpygments-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.py5
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': [