diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 9727c0f4b..5d5c088ad 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -44,6 +44,7 @@ categoriesForLanguage language name = case (language, name) of (JavaScript, "void_op") -> Operator (JavaScript, "for_in_statement") -> For (JavaScript, "for_of_statement") -> For + (JavaScript, "new_expression") -> Constructor (Ruby, "hash") -> Object _ -> defaultCategoryForNodeName name