lib/regextest/front/bracket-scanner.rb in regextest-0.1.4 vs lib/regextest/front/bracket-scanner.rb in regextest-0.1.5
- old
+ new
@@ -38,11 +38,11 @@
[:LEX_MINUS,
# %r!-(?\!\]|\z)! ], # somehow this code failed at Ruby 1.9.*
/-(?!\]|\z)/ ], # a letter must succeeds to minus
[:LEX_AND_AND,
%r!\&\&! ],
- [:LEX_SPECIAL_LETTER,
- %r!\\[RX]! ],
+ # [:LEX_SPECIAL_LETTER, # special letters are not valid in bracket
+ # %r!\\[RX]! ],
[:LEX_ESCAPED_LETTER,
%r!\\.! ], # \b is valid within character class
[:LEX_SPACE,
%r!\s!m ],
[:LEX_SIMPLE_ESCAPE, # redundant escape \@, \", etc.