1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00

Map onto String/Integer/Symbol literals.

This commit is contained in:
Rob Rix 2016-02-24 13:48:05 -07:00
parent d52a9d79b1
commit 6595b8fddd

View File

@ -67,6 +67,9 @@ defaultCategoryForNodeName :: String -> Set.Set Category
defaultCategoryForNodeName name = case name of
"function_call" -> Set.singleton FunctionCall
"pair" -> Set.singleton Pair
"string" -> Set.singleton StringLiteral
"integer" -> Set.singleton IntegerLiteral
"symbol" -> Set.singleton SymbolLiteral
_ -> Set.singleton (Other name)
-- | Given a constructor and a tree sitter document, return a parser.