mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +03:00
parser: fix pattern escaping
This commit is contained in:
parent
ee1a3db4f4
commit
ef096d9385
@ -104,7 +104,7 @@ parseInternalPattern = do maybeAnchor <- Parsec.optionMaybe (Parsec.char '^')
|
||||
c <- Parsec.oneOf ['1', '2', '3', '4', '5', '6', '7', '8', '9',
|
||||
'a', 'c', 'd', 'g', 'l', 'p', 's', 'u', 'w',
|
||||
'x', 'n', 't', 'b', 'f', '[', ']', '\\', '$',
|
||||
'(', ')', '^', '"', '*', '.']
|
||||
'(', ')', '^', '"', '*', '.', '-']
|
||||
case c of
|
||||
'b' -> do c1 <- Parsec.noneOf ['"']
|
||||
c2 <- Parsec.noneOf ['"']
|
||||
|
Loading…
Reference in New Issue
Block a user