From 3e2a3f0cd00239b27cfd0348a29ba2af0d156459 Mon Sep 17 00:00:00 2001 From: cn Date: Thu, 23 Nov 2017 20:34:40 +0100 Subject: [PATCH] grammar: support folding markers --- CHANGELOG.md | 4 ++++ grammars/fluentd.cson | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ecde95..4e6a28b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 1.1.0 +NEW FEATURES: + +- Support folding markers for directives like `...` + IMPROVEMENTS: - Add example Fluentd Configuration file using as many Fluentd features as possible even if they are not highlighted correctly diff --git a/grammars/fluentd.cson b/grammars/fluentd.cson index d958b32..bbe3621 100644 --- a/grammars/fluentd.cson +++ b/grammars/fluentd.cson @@ -3,6 +3,8 @@ name: 'Fluentd Configuration' fileTypes: [ 'fluent.conf' ] +foldingStartMarker: '<[^>]+>\\s*$' +foldingStopMarker: '^\\s*]+>' patterns: [ { match: "#.*"