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

Document rel_op.

This commit is contained in:
Rob Rix 2016-02-17 10:59:41 -05:00
parent 792b8b9995
commit 56e7f29058

View File

@ -57,7 +57,7 @@ categoriesForLanguage :: Language -> String -> Set.Set Category
categoriesForLanguage language name = case (language, name) of
(JavaScript, "object") -> Set.singleton DictionaryLiteral
(JavaScript, "pair") -> Set.singleton Pair
(JavaScript, "rel_op") -> Set.singleton BinaryOperator
(JavaScript, "rel_op") -> Set.singleton BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, !=
_ -> defaultCategoryForNodeName name
-- | Given a node name from TreeSitter, return the correct categories.