From 1b542a89ba2ec066465a7d77381c609564b6e490 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Wed, 17 Aug 2016 11:55:20 -0500 Subject: [PATCH] Promote "rel_op" to general language production --- src/TreeSitter.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index e2ea4b514..659599a0e 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -40,7 +40,6 @@ categoriesForLanguage language name = case (language, name) of (JavaScript, "generator_function") -> Function (JavaScript, "math_op") -> BinaryOperator -- bitwise operator, e.g. +, -, *, /. (JavaScript, "bool_op") -> BinaryOperator -- boolean operator, e.g. ||, &&. - (JavaScript, "rel_op") -> BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, !=. (JavaScript, "comma_op") -> CommaOperator -- comma operator, e.g. expr1, expr2. (JavaScript, "delete_op") -> Operator -- delete operator, e.g. delete x[2]. (JavaScript, "type_op") -> Operator -- type operator, e.g. typeof Object. @@ -96,6 +95,7 @@ defaultCategoryForNodeName name = case name of "method_definition" -> Method "comment" -> Comment "bitwise_op" -> BitwiseOperator + "rel_op" -> RelationalOperator _ -> Other name {-# INLINE defaultCategoryForNodeName #-}