mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Prevent double quoting for export statements
This commit is contained in:
parent
9a3fccc1e1
commit
d9660efdbe
@ -128,6 +128,7 @@ toLeafInfos (LeafInfo "number" termName) = pure (squotes (toDoc termName))
|
||||
toLeafInfos (LeafInfo "boolean" termName) = pure (squotes (toDoc termName))
|
||||
toLeafInfos (LeafInfo "anonymous function" termName) = pure (toDoc termName)
|
||||
toLeafInfos (LeafInfo cName@"string" termName) = pure (toDoc termName <+> toDoc cName)
|
||||
toLeafInfos (LeafInfo cName@"export statement" termName) = pure (toDoc termName <+> toDoc cName)
|
||||
toLeafInfos LeafInfo{..} = pure (squotes (toDoc termName) <+> toDoc categoryName)
|
||||
toLeafInfos BranchInfo{..} = toLeafInfos =<< branches
|
||||
toLeafInfos err@ErrorInfo{} = pure (pretty err)
|
||||
|
Loading…
Reference in New Issue
Block a user