From 6bccfb7d2abc9b943691749c0da45fcd0aa8a5dc Mon Sep 17 00:00:00 2001 From: joshvera Date: Fri, 10 Jun 2016 15:20:13 -0400 Subject: [PATCH] Map more categories to Categories --- src/TreeSitter.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 4dd056e8a..f9a9241e1 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -45,6 +45,10 @@ defaultCategoryForNodeName name = case name of "integer" -> IntegerLiteral "symbol" -> SymbolLiteral "array" -> ArrayLiteral + "function" -> Function + "identifier" -> Identifier + "formal_parameters" -> Params + "statement_block" -> ExpressionStatements _ -> Other name -- | Return a parser for a tree sitter language & document.