mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 04:45:28 +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