Browse Source

grammar: support highlighting ${variables} for e.g. record_transformer

Related to adamchainz/fluentd.tmLanguage#4
tags/v1.1.0
cn 3 years ago
parent
commit
1d286163c9
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -0
      grammars/fluentd.cson

+ 1
- 0
CHANGELOG.md View File

@ -9,6 +9,7 @@ NEW FEATURES:
- Support escape sequenes like `foo\nbar` in single, double and unquoted strings
- Support array and hash (using JSON source) value types like `["foo","bar"]`
- Support integer, time and size value types (e.g. `property 100`, `bufsize 5M` or `finterval 5s`)
- Support highlighting ${variables} (used by e.g. [record_transformer plugin](https://docs.fluentd.org/v0.12/articles/filter_record_transformer))
IMPROVEMENTS:


+ 4
- 0
grammars/fluentd.cson View File

@ -150,6 +150,10 @@ repository:
name: 'value.constant.time.fluentd'
}
{
match: '(\\$\\{[^\\}]*\\})'
name: 'variable.string.fluentd'
}
{
match: '([^\\s]+?)'
name: 'meta.string.unquoted.fluentd'
captures:


Loading…
Cancel
Save