1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

Promote "rel_op" to general language production

This commit is contained in:
Rick Winfrey 2016-08-17 11:55:20 -05:00
parent 95582bb798
commit 1b542a89ba

View File

@ -40,7 +40,6 @@ categoriesForLanguage language name = case (language, name) of
(JavaScript, "generator_function") -> Function (JavaScript, "generator_function") -> Function
(JavaScript, "math_op") -> BinaryOperator -- bitwise operator, e.g. +, -, *, /. (JavaScript, "math_op") -> BinaryOperator -- bitwise operator, e.g. +, -, *, /.
(JavaScript, "bool_op") -> BinaryOperator -- boolean 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, "comma_op") -> CommaOperator -- comma operator, e.g. expr1, expr2.
(JavaScript, "delete_op") -> Operator -- delete operator, e.g. delete x[2]. (JavaScript, "delete_op") -> Operator -- delete operator, e.g. delete x[2].
(JavaScript, "type_op") -> Operator -- type operator, e.g. typeof Object. (JavaScript, "type_op") -> Operator -- type operator, e.g. typeof Object.
@ -96,6 +95,7 @@ defaultCategoryForNodeName name = case name of
"method_definition" -> Method "method_definition" -> Method
"comment" -> Comment "comment" -> Comment
"bitwise_op" -> BitwiseOperator "bitwise_op" -> BitwiseOperator
"rel_op" -> RelationalOperator
_ -> Other name _ -> Other name
{-# INLINE defaultCategoryForNodeName #-} {-# INLINE defaultCategoryForNodeName #-}