Commits

Jeffrey Arnold committed dee8eca

StanLexer: fixed bug in analyse_text

  • Participants
  • Parent commits c446d2c

Comments (0)

Files changed (1)

pygments/lexers/math.py

         }
 
     def analyse_text(text):
-        return re.match('^\s*\\parameters\s*\{', text)
+        if re.search(r'^\s*parameters\s*\{', text, re.M):
+            return 1.0
+        else:
+            return 0.0
+