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

Ruby’s hashes are dictionary literals.

This commit is contained in:
Rob Rix 2016-02-21 21:59:07 -06:00
parent 80d52c20c3
commit ba86953078

View File

@ -58,6 +58,8 @@ categoriesForLanguage :: Language -> String -> Set.Set Category
categoriesForLanguage language name = case (language, name) of
(JavaScript, "object") -> Set.singleton DictionaryLiteral
(JavaScript, "rel_op") -> Set.singleton BinaryOperator -- relational operator, e.g. >, <, <=, >=, ==, !=
(Ruby, "hash") -> Set.singleton DictionaryLiteral
_ -> defaultCategoryForNodeName name
-- | Given a node name from TreeSitter, return the correct categories.