summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2012-08-27 00:36:21 -0700
committerTim Hatch <tim@timhatch.com>2012-08-27 00:36:21 -0700
commit695b7ed5c5bd141320b50fdd4e9db2cd07046e94 (patch)
treeff2d0c8f7ea138bfb4c87a4dc04540969677e05a
parent08ad16c5ad5e80dfddd7ae81e368227e6bb6b989 (diff)
downloadpygments-695b7ed5c5bd141320b50fdd4e9db2cd07046e94.tar.gz
Remove unnecessary flags from Racket and Jags lexers; fix repetition bug.
-rw-r--r--pygments/lexers/functional.py2
-rw-r--r--pygments/lexers/math.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py
index 55b28e7c..f77b918c 100644
--- a/pygments/lexers/functional.py
+++ b/pygments/lexers/functional.py
@@ -479,7 +479,7 @@ class RacketLexer(RegexLexer):
tokens = {
'root' : [
(r';.*$', Comment.Single),
- (r'(?ms)#\|[^|]+\|#', Comment.Multiline), # ?s = . matches newline
+ (r'#\|[^|]+\|#', Comment.Multiline),
# whitespaces - usually not relevant
(r'\s+', Text),
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')