1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Map more categories to Categories

This commit is contained in:
joshvera 2016-06-10 15:20:13 -04:00
parent fe270e5072
commit 6bccfb7d2a

View File

@ -45,6 +45,10 @@ defaultCategoryForNodeName name = case name of
"integer" -> IntegerLiteral "integer" -> IntegerLiteral
"symbol" -> SymbolLiteral "symbol" -> SymbolLiteral
"array" -> ArrayLiteral "array" -> ArrayLiteral
"function" -> Function
"identifier" -> Identifier
"formal_parameters" -> Params
"statement_block" -> ExpressionStatements
_ -> Other name _ -> Other name
-- | Return a parser for a tree sitter language & document. -- | Return a parser for a tree sitter language & document.