mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Ruby’s hash
es are dictionary literals.
This commit is contained in:
parent
80d52c20c3
commit
ba86953078
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user