parsec
parsec copied to clipboard
javaStyle defined as case insensitive
In Text.Parsec.Language
the definition for the javaStyle
is:
javaStyle :: LanguageDef st
javaStyle = emptyDef
{ commentStart = "/*"
, commentEnd = "*/"
, commentLine = "//"
, nestedComments = True
, identStart = letter
, identLetter = alphaNum <|> oneOf "_'"
, reservedNames = []
, reservedOpNames= []
, caseSensitive = False -- <==
}
Which defines java style to be case insensitive, which is very confusing as most java style languages are in fact case sensitive. Not sure if this is an oversight or me misunderstanding the intention of this language definition.