From f70bce09c29d4a011cc84249aaf2a04d01c62c5f Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 16 Jun 2016 09:55:13 -0500 Subject: [PATCH] Add true and false cases to defaultCategoryForNodeName --- src/TreeSitter.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 45e2c1586..0bdc89b6a 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -59,6 +59,8 @@ defaultCategoryForNodeName name = case name of "template_string" -> TemplateString "var_assignment" -> VarAssignment "var_declaration" -> VarDecl + "true" -> Boolean + "false" -> Boolean _ -> Other name -- | Return a parser for a tree sitter language & document.