mirror of
https://github.com/cmur2/language-fluentd.git
synced 2025-08-19 23:13:07 +02:00
Fiat lux
This commit is contained in:
44
grammars/fluentd.cson
Normal file
44
grammars/fluentd.cson
Normal file
@@ -0,0 +1,44 @@
|
||||
scopeName: 'source.fluentd'
|
||||
name: 'Fluentd Config File'
|
||||
fileTypes: [
|
||||
'fluent.conf'
|
||||
]
|
||||
patterns: [
|
||||
{
|
||||
match: "#.*"
|
||||
name: "comment.line.number-sign.fluentd"
|
||||
}
|
||||
{
|
||||
match: "(<)(\\w+)(\\s([^>]+?))?(>)"
|
||||
name: "entity.tag.start.fluentd"
|
||||
captures:
|
||||
"1":
|
||||
name: "punctuation.definition.tag.fluentd"
|
||||
"2":
|
||||
name: "entity.tag.fluentd"
|
||||
"4":
|
||||
name: "entity.other.attribute-name.fluentd"
|
||||
"5":
|
||||
name: "punctuation.definition.tag.fluentd"
|
||||
}
|
||||
{
|
||||
match: "(</)(\\w+)(>)"
|
||||
name: "entity.tag.end.fluentd"
|
||||
captures:
|
||||
"1":
|
||||
name: "punctuation.definition.tag.fluentd"
|
||||
"2":
|
||||
name: "entity.tag.fluentd"
|
||||
"3":
|
||||
name: "punctuation.definition.tag.fluentd"
|
||||
}
|
||||
{
|
||||
match: "([^\\s]+)(\\s+([^\\n]+))?"
|
||||
name: "keyword.directive.generic.fluentd"
|
||||
captures:
|
||||
"1":
|
||||
name: "keyword.directive.fluentd"
|
||||
"3":
|
||||
name: "string.unquoted.fluentd"
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user