mirror of
https://github.com/cmur2/language-fluentd.git
synced 2025-06-26 12:30:25 +02:00
grammar: support some flavors of value types like array/hash (using JSON source), integer etc
This commit is contained in:
@ -109,6 +109,46 @@ repository:
|
||||
{include: '#stringescapes'}
|
||||
]
|
||||
}
|
||||
{
|
||||
begin: '(\\[)'
|
||||
beginCaptures:
|
||||
'1':
|
||||
name: 'punctuation.definition.array.begin.fluentd'
|
||||
end: '(\\])'
|
||||
endCaptures:
|
||||
'1':
|
||||
name: 'punctuation.definition.array.end.fluentd'
|
||||
name: 'meta.value.array.fluentd'
|
||||
patterns: [
|
||||
{include: 'source.json'}
|
||||
]
|
||||
}
|
||||
{
|
||||
begin: '\\{'
|
||||
beginCaptures:
|
||||
'1':
|
||||
name: 'punctuation.definition.hash.begin.fluentd'
|
||||
end: '\\}'
|
||||
endCaptures:
|
||||
'1':
|
||||
name: 'punctuation.definition.hash.end.fluentd'
|
||||
name: 'meta.value.hash.fluentd'
|
||||
patterns: [
|
||||
{include: 'source.json'}
|
||||
]
|
||||
}
|
||||
{
|
||||
match: '\\b(\\d+)\\b'
|
||||
name: 'value.constant.integer.fluentd'
|
||||
}
|
||||
{
|
||||
match: '\\b(\\d+[kmgtKMGT])\\b'
|
||||
name: 'value.constant.size.fluentd'
|
||||
}
|
||||
{
|
||||
match: '\\b(\\d+[smhd])\\b'
|
||||
name: 'value.constant.time.fluentd'
|
||||
}
|
||||
{
|
||||
match: '([^\\s]+?)'
|
||||
name: 'meta.string.unquoted.fluentd'
|
||||
|
Reference in New Issue
Block a user