From 513c3b7ec7bb781695f3b8f5c38f5bb45391fb85 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 16 Jun 2016 11:25:17 -0500 Subject: [PATCH] Assign `arrow_function` productions as Function Syntax --- src/TreeSitter.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index de765e94d..c2abe9ea1 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -33,6 +33,7 @@ categoriesForLanguage language name = case (language, name) of (JavaScript, "this_expression") -> Identifier (JavaScript, "null") -> Identifier (JavaScript, "undefined") -> Identifier + (JavaScript, "arrow_function") -> Function (Ruby, "hash") -> DictionaryLiteral _ -> defaultCategoryForNodeName name