@@ -1,7 +1,7 @@
11{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
22
33module Core.CoreParser(parseTerm, parseFile, parseDef, pTerm, iName,
4− idrisLexer, maybeWithNS, pDocComment) where
4+ idrisLexer, maybeWithNS, pDocComment, opChars) where
55
66import Core.TT
77
@@ -39,8 +39,11 @@ idrisDef = haskellDef {
3939 "Bits8", "Bits16", "Bits32", "Bits64"]
4040 }
4141
42−iOpStart = oneOf ":!#$%&*+./<=>?@\\^|-~"
43−iOpLetter = oneOf ":!#$%&*+./<=>?@\\^|-~"
42+-- | The characters allowed in operator names
43+opChars = ":!#$%&*+./<=>?@\\^|-~"
44+
45+iOpStart = oneOf opChars
46+iOpLetter = oneOf opChars
4447-- <|> letter
4548
4649idrisLexer :: TokenParser a