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:
parent
9b4050fb77
commit
37da3d7b5d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue