diff options
author | Tim Hatch <tim@timhatch.com> | 2012-08-27 00:36:21 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-08-27 00:36:21 -0700 |
commit | 695b7ed5c5bd141320b50fdd4e9db2cd07046e94 (patch) | |
tree | ff2d0c8f7ea138bfb4c87a4dc04540969677e05a /pygments/lexers/math.py | |
parent | 08ad16c5ad5e80dfddd7ae81e368227e6bb6b989 (diff) | |
download | pygments-695b7ed5c5bd141320b50fdd4e9db2cd07046e94.tar.gz |
Remove unnecessary flags from Racket and Jags lexers; fix repetition bug.
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r-- | pygments/lexers/math.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index 475cee0d..7274e34d 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -1149,7 +1149,7 @@ class BugsLexer(RegexLexer): include('comments'), include('whitespace'), # Block start - (r'(?s)(model)(\s|\n)+({)', + (r'(model)(\s+)({)', bygroups(Keyword.Namespace, Text, Punctuation), 'block') ], 'block' : [ @@ -1233,7 +1233,7 @@ class JagsLexer(RegexLexer): include('comments'), include('whitespace'), # Block start - (r'(?s)(model|data)(\s|\n)+({)', + (r'(model|data)(\s+)({)', bygroups(Keyword.Namespace, Text, Punctuation), 'block'), # Variable declaration (TODO: improve) (r'var\b', Keyword.Declaration, 'var') |