Support [] and JavaScript (which uses periods)

This commit is contained in:
Joshua Clayton 2016-05-03 05:05:55 -04:00
parent 3ddf0631a9
commit 31a569eef9

View File

@ -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