1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Assign the Program category.

This commit is contained in:
Rob Rix 2016-06-03 18:35:27 -04:00
parent 83b57fc643
commit adca4a56a3

View File

@ -37,6 +37,7 @@ categoriesForLanguage language name = case (language, name) of
-- | Given a node name from TreeSitter, return the correct categories.
defaultCategoryForNodeName :: String -> Category
defaultCategoryForNodeName name = case name of
"program" -> Program
"function_call" -> FunctionCall
"pair" -> Pair
"string" -> StringLiteral