Commits

Tim Hatch committed 0420362

Remove unnecessary flags from Racket and Jags lexers; fix repetition bug.

  • Participants
  • Parent commits 7cfb036

Comments (0)

Files changed (2)

File pygments/lexers/functional.py

     tokens = {
         'root' : [
             (r';.*$', Comment.Single),
-            (r'(?ms)#\|[^|]+\|#', Comment.Multiline), # ?s = . matches newline
+            (r'#\|[^|]+\|#', Comment.Multiline),
 
             # whitespaces - usually not relevant
             (r'\s+', Text),

File pygments/lexers/math.py

             include('comments'),
             include('whitespace'),
             # Block start
-            (r'(?s)(model)(\s|\n)+({)',
+            (r'(model)(\s+)({)',
              bygroups(Keyword.Namespace, Text, Punctuation), 'block')
         ],
         'block' : [
             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')