parsec icon indicating copy to clipboard operation
parsec copied to clipboard

javaStyle defined as case insensitive

Open Marckvdv opened this issue 6 years ago • 0 comments

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.

Marckvdv avatar Jul 03 '18 15:07 Marckvdv