mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-10-26 05:07:35 +03:00
Support [] and JavaScript (which uses periods)
This commit is contained in:
parent
3ddf0631a9
commit
31a569eef9
@ -44,7 +44,7 @@ parseTermMatch = do
|
||||
colonSep = do { void $ try $ char ':' }
|
||||
|
||||
termChars :: Parser Char
|
||||
termChars = choice [alphaNum, char '_', char '!', char '?', char '=', char '>', char '<']
|
||||
termChars = choice [alphaNum, char '_', char '!', char '?', char '=', char '>', char '<', char '[', char ']', char '.']
|
||||
|
||||
termParser :: Parser String
|
||||
termParser = many1 termChars
|
||||
|
Loading…
Reference in New Issue
Block a user