mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Relational operators are binary.
This commit is contained in:
parent
b137678519
commit
792b8b9995
@ -57,6 +57,7 @@ categoriesForLanguage :: Language -> String -> Set.Set Category
|
|||||||
categoriesForLanguage language name = case (language, name) of
|
categoriesForLanguage language name = case (language, name) of
|
||||||
(JavaScript, "object") -> Set.singleton DictionaryLiteral
|
(JavaScript, "object") -> Set.singleton DictionaryLiteral
|
||||||
(JavaScript, "pair") -> Set.singleton Pair
|
(JavaScript, "pair") -> Set.singleton Pair
|
||||||
|
(JavaScript, "rel_op") -> Set.singleton BinaryOperator
|
||||||
_ -> defaultCategoryForNodeName name
|
_ -> defaultCategoryForNodeName name
|
||||||
|
|
||||||
-- | Given a node name from TreeSitter, return the correct categories.
|
-- | Given a node name from TreeSitter, return the correct categories.
|
||||||
|
Loading…
Reference in New Issue
Block a user