1. Bruce Mitchener
  2. pygments-main


Michael Tiller  committed 912d22c

Fixed a bug in Modelica Lexer

The current Modelica lexer incorrectly tags the keywords that mark
the start of a class as the name of the class and leave the actual
name of the class untagged. This minor change addresses this by
using the bygroups(...) function to associated the Keyword tag
with the keywords that initiate a class and the Name.Class tag
with the actual name of the class.

  • Participants
  • Parent commits f6d0af3
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/other.py

View file
         'classes': [
-             r'record|type)\b', Name.Class),
+             r'record|type)(\s+)([A-Za-z_]+)', bygroups(Keyword,Text,Name.Class))
         'string': [
             (r'"', String, '#pop'),