From 30d4645dbb0c7e1d8d0b52e7a36abca9144824a9 Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 25 Jul 2016 14:57:14 -0400 Subject: [PATCH] Add bool_op and expression_statement mapping to categoriesForLanguage --- src/TreeSitter.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index a567817fc..fc54f9b51 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -31,6 +31,8 @@ categoriesForLanguage :: Language -> Text -> Category categoriesForLanguage language name = case (language, name) of (JavaScript, "object") -> Object (JavaScript, "rel_op") -> BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, != + (JavaScript, "bool_op") -> BinaryOperator + (JavaScript, "expression_statement") -> ExpressionStatements (JavaScript, "this_expression") -> Identifier (JavaScript, "null") -> Identifier (JavaScript, "undefined") -> Identifier