diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 3134f91c4..386cea66b 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -57,6 +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 _ -> defaultCategoryForNodeName name -- | Given a node name from TreeSitter, return the correct categories.