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:
josh committed 2025-07-25 16:14:35 -04:00
1 parent 125c149750
commit 035bb2fc60
3 files changed
+28 -5

No files matched your search

+2 -5
View File
@@ -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)