grammar: add single and double quoted strings

This commit is contained in:
cn 2017-11-24 23:16:50 +01:00
parent 0b972b731f
commit f2d50423de
1 changed files with 22 additions and 0 deletions

View File

@ -77,6 +77,28 @@ repository:
]
values:
patterns: [
{
begin: '(")'
beginCaptures:
'1':
name: 'punctuation.definition.string.begin.fluentd'
end: '(")'
endCaptures:
'1':
name: 'punctuation.definition.string.end.fluentd'
name: 'meta.value.string.quoted.double.fluentd'
}
{
begin: "(')"
beginCaptures:
'1':
name: 'punctuation.definition.string.begin.fluentd'
end: "(')"
endCaptures:
'1':
name: 'punctuation.definition.string.end.fluentd'
name: 'meta.value.string.quoted.single.fluentd'
}
{
match: '([^\\s]+?)'
name: 'meta.string.unquoted.fluentd'