summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby/patterns.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-18 08:33:33 +0000
committermurphy <murphy@rubychan.de>2006-10-18 08:33:33 +0000
commit4d7ce5f7037580a127ae26d36f49ac5cdf49000d (patch)
tree5301411f9d019e2fc58858383f941963feaa60de /lib/coderay/scanners/ruby/patterns.rb
parent2c0a26c2f541fdd74d7af2d814c91d799121f761 (diff)
downloadcoderay-4d7ce5f7037580a127ae26d36f49ac5cdf49000d.tar.gz
Fixed functional test.
Fixed Ruby scanner (/= was scanned as regexp!) Made bench.rb run from any folder. Made scanner test diff function work via EDITOR instead of gvimdiff.
Diffstat (limited to 'lib/coderay/scanners/ruby/patterns.rb')
-rw-r--r--lib/coderay/scanners/ruby/patterns.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby/patterns.rb b/lib/coderay/scanners/ruby/patterns.rb
index c601011..6023b21 100644
--- a/lib/coderay/scanners/ruby/patterns.rb
+++ b/lib/coderay/scanners/ruby/patterns.rb
@@ -21,7 +21,8 @@ module Scanners
add(MODULE_KEYWORDS, :module_expected)
IDENTS_ALLOWING_REGEXP = %w[
- and or not while until unless if then elsif when sub sub! gsub gsub! scan slice slice! split
+ and or not while until unless if then elsif when sub sub! gsub gsub!
+ scan slice slice! split
]
REGEXP_ALLOWED = WordList.new(false).
add(IDENTS_ALLOWING_REGEXP, :set)