diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 14:00:28 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 14:00:28 +0100 |
commit | c863ac19ce4d591b93be8b36cb69b04422c8dc9f (patch) | |
tree | 98bd701a6fb0da18d92897960eabdd9a139ad7d4 /pygments/lexers/modeling.py | |
parent | 90fe03b0f663810f4b6718d89b5e830ec2c67960 (diff) | |
download | pygments-c863ac19ce4d591b93be8b36cb69b04422c8dc9f.tar.gz |
Simplify charclasses in the remaining modules
Diffstat (limited to 'pygments/lexers/modeling.py')
-rw-r--r-- | pygments/lexers/modeling.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/modeling.py b/pygments/lexers/modeling.py index 9e7c172d..1552fbf8 100644 --- a/pygments/lexers/modeling.py +++ b/pygments/lexers/modeling.py @@ -46,7 +46,7 @@ class ModelicaLexer(RegexLexer): include('whitespace'), (r'"', String.Double, 'string'), (r'[()\[\]{},;]+', Punctuation), - (r'\.?[\^*/+\-]|\.|<>|[<>:=]=?', Operator), + (r'\.?[*^/+-]|\.|<>|[<>:=]=?', Operator), (r'\d+(\.?\d*[eE][-+]?\d+|\.\d*)', Number.Float), (r'\d+', Number.Integer), (r'(abs|acos|actualStream|array|asin|assert|AssertionLevel|atan|' @@ -164,7 +164,7 @@ class BugsLexer(RegexLexer): (r'(model)(\s+)(\{)', bygroups(Keyword.Namespace, Text, Punctuation)), # Reserved Words - (r'(for|in)(?![0-9a-zA-Z\._])', Keyword.Reserved), + (r'(for|in)(?![\w.])', Keyword.Reserved), # Built-in Functions (r'(%s)(?=\s*\()' % r'|'.join(_FUNCTIONS + _DISTRIBUTIONS), @@ -246,9 +246,9 @@ class JagsLexer(RegexLexer): # Block start (r'(model|data)(\s+)(\{)', bygroups(Keyword.Namespace, Text, Punctuation)), - (r'var(?![0-9a-zA-Z\._])', Keyword.Declaration), + (r'var(?![\w.])', Keyword.Declaration), # Reserved Words - (r'(for|in)(?![0-9a-zA-Z\._])', Keyword.Reserved), + (r'(for|in)(?![\w.])', Keyword.Reserved), # Builtins # Need to use lookahead because . is a valid char (r'(%s)(?=\s*\()' % r'|'.join(_FUNCTIONS |