Skip to content

Instantly share code, notes, and snippets.

@hfm
Created February 10, 2023 12:42
Show Gist options
  • Save hfm/4ebc9ee2e2881af0af77dff568e2f36f to your computer and use it in GitHub Desktop.
Save hfm/4ebc9ee2e2881af0af77dff568e2f36f to your computer and use it in GitHub Desktop.
%YAML 1.2
---
name: Fluentd
scope: source.fluentd
contexts:
main:
- scope: entity.name.tag.start.fluentd
match: (<)(\w+)(\s([^>]+?))?(>)
captures:
1: punctuation.definition.generic.begin.fluentd
2: entity.name.tag.fluentd
4: entity.other.attribute-name.fluentd
5: punctuation.definition.generic.begin.fluentd
- scope: entity.name.tag.end.fluentd
match: (</)(\w+)(>)
captures:
1: punctuation.definition.generic.end.fluentd
2: entity.name.tag.fluentd
3: punctuation.definition.generic.end.fluentd
- match: (@\w+) ([^\n#]+)
captures:
1: keyword.other.reserved_params.fluentd
2: string.unquoted.fluentd
- match: (#).*$\n?
scope: comment.line.fluentd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment