From 0f402658c5c018dfe97c65288db5843e6c44c1f0 Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Sun, 9 Mar 2025 22:04:34 +0000 Subject: [PATCH] Fix #201 Support elif in Cabal files --- CHANGELOG.md | 1 + syntaxes/cabal.YAML-tmLanguage | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a84e469..e14e7bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add support for `\cases` syntax ([#218](https://github.com/JustusAdam/language-haskell/pull/218)), thanks to [@mixphix](https://github.com/mixphix) - Fix bare unit type applications ([#225](https://github.com/JustusAdam/language-haskell/issue/225)), thanks to [@mixphix](https://github.com/mixphix) - Fix qualified type operators in export lists ([#191](https://github.com/JustusAdam/language-haskell/issue/191)), thanks to [@mixphix] +- Add support for `elif` in Cabal files (`cabal-version` >= 2.2) ([#236](https://github.com/JustusAdam/language-haskell/pull/236)) ## 3.6.0 - 15.03.2022 diff --git a/syntaxes/cabal.YAML-tmLanguage b/syntaxes/cabal.YAML-tmLanguage index 0e8b1a1..262301d 100644 --- a/syntaxes/cabal.YAML-tmLanguage +++ b/syntaxes/cabal.YAML-tmLanguage @@ -94,7 +94,7 @@ patterns: '1': {name: entity.name.section.cabal} '3': {name: entity.name.function.cabal} - name: keyword.control.cabal - match: '^[ \t]*(if|else)' + match: '^[ \t]*(if|elif|else)' - name: comment.line.double-dash match: '^\s*--.*$' scopeName: source.cabal