summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')