mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Add JavaScript language specific categories for this, undefined and null
This commit is contained in:
parent
7292e6ebe4
commit
6e3a2e2a4e
@ -30,6 +30,9 @@ categoriesForLanguage :: Language -> Text -> Category
|
||||
categoriesForLanguage language name = case (language, name) of
|
||||
(JavaScript, "object") -> DictionaryLiteral
|
||||
(JavaScript, "rel_op") -> BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, !=
|
||||
(JavaScript, "this_expression") -> Identifier
|
||||
(JavaScript, "null") -> Identifier
|
||||
(JavaScript, "undefined") -> Identifier
|
||||
|
||||
(Ruby, "hash") -> DictionaryLiteral
|
||||
_ -> defaultCategoryForNodeName name
|
||||
|
Loading…
Reference in New Issue
Block a user