From 09cc641d02467a2a82af7c1e7e2cf016d78d1dd8 Mon Sep 17 00:00:00 2001 From: Sergey Parshukov Date: Sat, 8 Jul 2017 00:23:55 +0300 Subject: [PATCH 1/2] custom-setup in .cabal files --- syntaxes/cabal.tmLanguage | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntaxes/cabal.tmLanguage b/syntaxes/cabal.tmLanguage index 6ab330a..3374eb1 100644 --- a/syntaxes/cabal.tmLanguage +++ b/syntaxes/cabal.tmLanguage @@ -69,6 +69,7 @@ | type | test-module | description + | setup-depends ): @@ -94,7 +95,10 @@ name entity.name.section.cabal match - ^(?i)library$ + ^(?ix: + ( library + | custom-setup + ))$ match From 543c5bb49d6de0b9d546ba4912ab2652fef783a6 Mon Sep 17 00:00:00 2001 From: Sergey Parshukov Date: Sat, 8 Jul 2017 00:37:54 +0300 Subject: [PATCH 2/2] Comment support in .cabal files --- syntaxes/cabal.tmLanguage | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syntaxes/cabal.tmLanguage b/syntaxes/cabal.tmLanguage index 3374eb1..1ecc895 100644 --- a/syntaxes/cabal.tmLanguage +++ b/syntaxes/cabal.tmLanguage @@ -128,6 +128,12 @@ match ^[ \t]*(if|else) + + name + comment.line.double-dash + match + ^\s*--.*$ + scopeName source.cabal