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

Add bool_op and expression_statement mapping to categoriesForLanguage

This commit is contained in:
joshvera 2016-07-25 14:57:14 -04:00
parent 3b3d3282cb
commit 30d4645dbb

View File

@ -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