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:
parent
d52a9d79b1
commit
6595b8fddd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user