better heuristic for what is a package-qualified symbol

Hopefully this will avoid mangling css files embedded in strings inside
spliced code.
This commit is contained in:
Joey Hess 2014-05-27 20:12:16 -04:00
parent 9b4050fb77
commit 37da3d7b5d
Failed to extract signature

View file

@ -536,7 +536,11 @@ mangleCode = flip_colon
void $ char ':'
if length s < 5
then unexpected "too short to be a namespace"
else hstoken
else do
t <- hstoken
case t of
(c:r) | isUpper c && "." `isInfixOf` r -> return t
_ -> unexpected "not a module qualified symbol"
hstoken :: Parser String
hstoken = do