1
0
mirror of https://github.com/cmur2/language-fluentd.git synced 2024-12-22 12:54:26 +01:00

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

Related to adamchainz/fluentd.tmLanguage#4
This commit is contained in:
cn 2017-11-24 23:21:54 +01:00
parent 8396584552
commit 1d286163c9
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ NEW FEATURES:
- Support escape sequenes like `foo\nbar` in single, double and unquoted strings - 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 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 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: IMPROVEMENTS:

View File

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