1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Add math_op

This commit is contained in:
joshvera 2016-08-01 12:19:05 -04:00
parent d216481ca7
commit 7c1e6677a8

View File

@ -37,12 +37,14 @@ categoriesForLanguage language name = case (language, name) of
(JavaScript, "undefined") -> Identifier (JavaScript, "undefined") -> Identifier
(JavaScript, "arrow_function") -> Function (JavaScript, "arrow_function") -> Function
(JavaScript, "generator_function") -> Function (JavaScript, "generator_function") -> Function
(JavaScript, "rel_op") -> BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, != (JavaScript, "math_op") -> BinaryOperator -- bitwise operator, e.g. +, -, *, /.
(JavaScript, "bool_op") -> BinaryOperator (JavaScript, "bool_op") -> BinaryOperator -- boolean operator, e.g. ||, &&.
(JavaScript, "delete_op") -> Operator (JavaScript, "bitwise_op") -> BinaryOperator -- bitwise operator, e.g. ^, &, etc.
(JavaScript, "type_op") -> Operator (JavaScript, "rel_op") -> BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, !=.
(JavaScript, "void_op") -> Operator (JavaScript, "comma_op") -> Operator -- comma operator, e.g. expr1, expr2.
(JavaScript, "comma_op") -> Operator (JavaScript, "delete_op") -> Operator -- delete operator, e.g. delete x[2].
(JavaScript, "type_op") -> Operator -- type operator, e.g. typeof Object.
(JavaScript, "void_op") -> Operator -- void operator, e.g. void 2.
(JavaScript, "for_in_statement") -> For (JavaScript, "for_in_statement") -> For
(JavaScript, "for_of_statement") -> For (JavaScript, "for_of_statement") -> For