Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Haskell] match deriving (..) via (..) #2271

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Haskell/Haskell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ contexts:
- include: module_name
- include: module_exports
- include: comments
- match: (deriving)\s*\(
- match: (deriving|via)\s*\(
captures:
1: keyword.other.haskell
push:
Expand Down
11 changes: 11 additions & 0 deletions Haskell/syntax_test_haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,14 @@
0XdeafBEEF42
-- ^^^^^^^^^^^^ constant.numeric.integer.hexadecimal
-- ^^ punctuation.definition.numeric.base

data Record =
Record {
recordInt :: Int
, recordString :: String
, recordDouble :: Double
, recordRational :: Rational
} deriving (Eq, Ord, Generic)
deriving (Read, Show) via (Quiet Record)
-- ^^^ keyword.other.haskell
-- ^^^^^^^^^^^^^^^^^^ meta.deriving.haskell