diff options
author | Georg Brandl <georg@python.org> | 2009-06-24 06:34:46 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-24 06:34:46 +0000 |
commit | 3ba0dc4c2330b50a67a01fe3d8316d2390f90a31 (patch) | |
tree | 180a72119f4c596ab6fa0cd241b88ae49c8c54eb /pygments/lexers/agile.py | |
parent | f9e9c339ed37a9ddb2825693c7e53b3486f46a9b (diff) | |
parent | a3c852dd6d84c410b47cd90fe60be5e679acb081 (diff) | |
download | pygments-3ba0dc4c2330b50a67a01fe3d8316d2390f90a31.tar.gz |
merge with tim
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r-- | pygments/lexers/agile.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 9f7729c4..932d7edd 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -568,7 +568,7 @@ class RubyLexer(ExtendedRegexLexer): # in method calls with braces (r'(?<=[-+/*%=<>&!^|~,(])(\s*)(%([\t ])(?:[^\3\\]*(?:\\.[^\3\\]*)*)\3)', bygroups(Text, String.Other, None)), - # and because of fixed with lookbehinds the whole thing a + # and because of fixed width lookbehinds the whole thing a # second time for line startings... (r'^(\s*)(%([\t ])(?:[^\3\\]*(?:\\.[^\3\\]*)*)\3)', bygroups(Text, String.Other, None)), @@ -631,7 +631,7 @@ class RubyLexer(ExtendedRegexLexer): # empty string heredocs (r'(<<-?)("|\')()(\2)(.*?\n)', heredoc_callback), (r'__END__', Comment.Preproc, 'end-part'), - # multiline regex (after keywords or assignemnts) + # multiline regex (after keywords or assignments) (r'(?:^|(?<=[=<>~!])|' r'(?<=(?:\s|;)when\s)|' r'(?<=(?:\s|;)or\s)|' @@ -665,7 +665,7 @@ class RubyLexer(ExtendedRegexLexer): # better ideas?) # since pygments 0.7 we also eat a "?" operator after numbers # so that the char operator does not work. Chars are not allowed - # there so that you can use the terner operator. + # there so that you can use the ternary operator. # stupid example: # x>=0?n[x]:"" (r'(0_?[0-7]+(?:_[0-7]+)*)(\s*)([/?])?', @@ -745,6 +745,7 @@ class RubyLexer(ExtendedRegexLexer): ], 'multiline-regex': [ include('string-intp'), + (r'\\\\', String.Regex), (r'\\/', String.Regex), (r'[\\#]', String.Regex), (r'[^\\/#]+', String.Regex), |