From eb638a974b8f25c676b018afd45b3a6f4cedf09c Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Fri, 17 Jun 2016 17:04:18 -0500 Subject: [PATCH] Provide JavaScript specific Operator categories for delete_op, type_op and void_op --- src/TreeSitter.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 3a2a71abb..19c454aec 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -35,6 +35,9 @@ categoriesForLanguage language name = case (language, name) of (JavaScript, "undefined") -> Identifier (JavaScript, "arrow_function") -> Function (JavaScript, "generator_function") -> Function + (JavaScript, "delete_op") -> Operator + (JavaScript, "type_op") -> Operator + (JavaScript, "void_op") -> Operator (Ruby, "hash") -> DictionaryLiteral _ -> defaultCategoryForNodeName name