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

Assign arrow_function productions as Function Syntax

This commit is contained in:
Rick Winfrey 2016-06-16 11:25:17 -05:00
parent 308a690cdb
commit 513c3b7ec7

View File

@ -33,6 +33,7 @@ categoriesForLanguage language name = case (language, name) of
(JavaScript, "this_expression") -> Identifier (JavaScript, "this_expression") -> Identifier
(JavaScript, "null") -> Identifier (JavaScript, "null") -> Identifier
(JavaScript, "undefined") -> Identifier (JavaScript, "undefined") -> Identifier
(JavaScript, "arrow_function") -> Function
(Ruby, "hash") -> DictionaryLiteral (Ruby, "hash") -> DictionaryLiteral
_ -> defaultCategoryForNodeName name _ -> defaultCategoryForNodeName name