1. Georg Brandl
  2. pygments-main

Commits

Dietmar Winkler  committed 26bd727

Add "for" on the exclude list for highlighting class names.

  • Participants
  • Parent commits 0828f22
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/other.py

View file
  • Ignore whitespace
              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': [