1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

add missing cases

This commit is contained in:
joshvera 2016-11-02 10:54:13 -04:00
parent 968186b2da
commit 23b91cf097
2 changed files with 3 additions and 1 deletions

View File

@ -341,6 +341,7 @@ instance HasCategory Category where
C.Module -> "module statement"
C.Import -> "import statement"
C.Export -> "export statement"
C.AnonymousFunction -> "anonymous function"
instance HasField fields Category => HasCategory (SyntaxTerm leaf fields) where
toCategoryName = toCategoryName . category . extract

View File

@ -83,7 +83,8 @@ styleName category = "category-" <> case category of
C.Module -> "module_statement"
C.Import -> "import_statement"
C.Export -> "export_statement"
C.AnonymousFunction -> "anonymous_function"
-- | Pick the class name for a split patch.
splitPatchToClassName :: SplitPatch a -> AttributeValue
splitPatchToClassName patch = stringValue $ "patch " <> case patch of