From 31a569eef94f933c6c38ff300a36610bba7ae18a Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Tue, 3 May 2016 05:05:55 -0400 Subject: [PATCH] Support [] and JavaScript (which uses periods) --- src/Unused/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unused/Parser.hs b/src/Unused/Parser.hs index 5f51219..77e8112 100644 --- a/src/Unused/Parser.hs +++ b/src/Unused/Parser.hs @@ -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