Browse Source

grammar: support folding markers

tags/v1.1.0
cn 3 years ago
parent
commit
3e2a3f0cd0
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +2
    -0
      grammars/fluentd.cson

+ 4
- 0
CHANGELOG.md View File

@ -2,6 +2,10 @@
## 1.1.0
NEW FEATURES:
- Support folding markers for directives like `<source>...</source>`
IMPROVEMENTS:
- Add example Fluentd Configuration file using as many Fluentd features as possible even if they are not highlighted correctly


+ 2
- 0
grammars/fluentd.cson View File

@ -3,6 +3,8 @@ name: 'Fluentd Configuration'
fileTypes: [
'fluent.conf'
]
foldingStartMarker: '<[^>]+>\\s*$'
foldingStopMarker: '^\\s*</[^>]+>'
patterns: [
{
match: "#.*"


Loading…
Cancel
Save