diff options
author | Georg Brandl <georg@python.org> | 2010-02-21 21:33:19 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-02-21 21:33:19 +0100 |
commit | ba92842a3d036b9dda0c2da75718a8ef79c795ac (patch) | |
tree | 1c1f50cb295b5f79d598ee6bf8ba351ae9fb98ed | |
parent | 29262b9dd70478e3caccb7bcf7480a18eb0b0338 (diff) | |
download | pygments-ba92842a3d036b9dda0c2da75718a8ef79c795ac.tar.gz |
#476: fix a ruby regex mishighlighting.
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | pygments/lexers/agile.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -22,6 +22,8 @@ Version 1.3 - 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. diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 01af255f..70da4dab 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -655,7 +655,7 @@ class RubyLexer(ExtendedRegexLexer): 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) |