1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00

Don't single quote around an import statement

This commit is contained in:
Rick Winfrey 2016-10-17 18:42:24 -05:00
parent 242654b05f
commit e831229779

View File

@ -155,6 +155,7 @@ toLeafInfos leaf = pure . flip JSONSummary (sourceSpan leaf) $ case leaf of
(LeafInfo "anonymous function" termName _) -> toDoc termName <+> "function"
(LeafInfo cName@"string" termName _) -> toDoc termName <+> toDoc cName
(LeafInfo cName@"export statement" termName _) -> toDoc termName <+> toDoc cName
(LeafInfo cName@"import statement" termName _) -> toDoc termName <+> toDoc cName
LeafInfo{..} -> squotes (toDoc termName) <+> toDoc categoryName
node -> panic $ "Expected a leaf info but got a: " <> show node