Fix matching lexer patterns containing a negated character class which includes a backslash-escaped sequence that matches more than one character
This commit is contained in:
1 parent
125c149750
commit
035bb2fc60
3 files changed
+28
-5
No files matched your search
@@ -92,11 +92,8 @@ class Propane
|
||||
@units = []
|
||||
@negate = false
|
||||
end
|
||||
def initialize
|
||||
@units = []
|
||||
end
|
||||
def method_missing(*args)
|
||||
@units.__send__(*args)
|
||||
def method_missing(*args, &block)
|
||||
@units.__send__(*args, &block)
|
||||
end
|
||||
def <<(thing)
|
||||
if thing.is_a?(CharacterClassUnit)
|
||||
|
||||
Reference in new issue
Block a user