diff options
author | gbrandl <devnull@localhost> | 2009-03-15 23:06:05 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-03-15 23:06:05 +0100 |
commit | 3aa0be00b9c3237999dee50f3cababe46e15a276 (patch) | |
tree | eb37a4a48b60a5a0e389460e0971192e2a7ca588 /pygments | |
parent | 2af4860f9850b74585951d67e6240ae23e639f47 (diff) | |
download | pygments-3aa0be00b9c3237999dee50f3cababe46e15a276.tar.gz |
Modelica lexer fix from author.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/other.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index d85eafae..0a269bc2 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -1570,11 +1570,9 @@ class ModelicaLexer(RegexLexer): (r'[~!%^&*+=|?:<>/-]', Operator), (r'[()\[\]{},.;]', Punctuation), (r'(true|false|NULL|Real|Integer|Boolean)\b', Name.Builtin), - (r"('([~!%^&*+=|?:<>/-]+|[a-zA-Z_][\w]*)'|[a-zA-Z_][\w]*)+" - r"(\.('([~!%^&*+=|?:<>/-]|[a-zA-Z_][\w]*)'|[a-zA-Z_][\w]*)+)+", - Name.Class), - (r"('([~!%^&*+=|?:<>/-]+|[a-zA-Z_][\w]*)'|[a-zA-Z_][\w]*)", Name) - ], + (r"([a-zA-Z_][\w]*|'[a-zA-Z_\+\-\*\/\^][\w]*')" + r"(\.([a-zA-Z_][\w]*|'[a-zA-Z_\+\-\*\/\^][\w]*'))+", Name.Class), + (r"('[\w\+\-\*\/\^]+'|\w+)", Name) ], 'root': [ include('whitespace'), include('keywords'), |