summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby/patterns.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-02-05 23:45:16 +0000
committermurphy <murphy@rubychan.de>2009-02-05 23:45:16 +0000
commit1ee89811c7bf8fc124e318ca01a605d3dfff1589 (patch)
tree28bab3366e218d5164114f0903e4f0dabdf1f879 /lib/coderay/scanners/ruby/patterns.rb
parent7c653b9bafc2159431c86b628d5279913e7ec74d (diff)
downloadcoderay-1ee89811c7bf8fc124e318ca01a605d3dfff1589.tar.gz
Ruby scanner: Fixed rarely used \c, \C-, and \M- escape sequences.
* JavaScript scanner: elaborate a comment * SimpleRegexpScanner: Just some testing with the Ruby stack. * coderay-lib.tmproj: I should just remove it from the repo...
Diffstat (limited to 'lib/coderay/scanners/ruby/patterns.rb')
-rw-r--r--lib/coderay/scanners/ruby/patterns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby/patterns.rb b/lib/coderay/scanners/ruby/patterns.rb
index c18789b..98e4e93 100644
--- a/lib/coderay/scanners/ruby/patterns.rb
+++ b/lib/coderay/scanners/ruby/patterns.rb
@@ -87,7 +87,7 @@ module Scanners
# assert_equal(129, ?\M-\C-a)
ESCAPE = /
[abefnrstv]
- | M-\\C-|C-\\M-|M-\\c|c\\M-|c|C-|M-
+ | (?:M-|C-|c) .?
| [0-7]{1,3}
| x[0-9A-Fa-f]{1,2}
| .