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

Relational operators are binary.

This commit is contained in:
Rob Rix 2016-02-13 22:33:57 -05:00
parent b137678519
commit 792b8b9995

View File

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