Commits

Georg Brandl  committed 195d792

#476: fix a ruby regex mishighlighting.

  • Participants
  • Parent commits d2ea771

Comments (0)

Files changed (2)

 
 - Fixed a bug in `do_insertions()` used for multi-lexer languages.
 
+- Fixed a Ruby regex highlighting bug (#476).
+
 - Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
 
 

File pygments/lexers/agile.py

                  r'(?<=^match\s)|'
                  r'(?<=^if\s)|'
                  r'(?<=^elsif\s)'
-             r')(\s*)(/)(?!=)', bygroups(Text, String.Regex), 'multiline-regex'),
+             r')(\s*)(/)', bygroups(Text, String.Regex), 'multiline-regex'),
             # multiline regex (in method calls)
             (r'(?<=\(|,)/', String.Regex, 'multiline-regex'),
             # multiline regex (this time the funny no whitespace rule)