From 1ee89811c7bf8fc124e318ca01a605d3dfff1589 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 5 Feb 2009 23:45:16 +0000 Subject: 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... --- lib/coderay/scanners/ruby/patterns.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/ruby') 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} | . -- cgit v1.2.1