From d219055bc845253eff2b27d30a23b11b97b7ee9d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 19 Nov 2017 21:26:59 +0100 Subject: Update --- syntax/toml.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'syntax/toml.vim') diff --git a/syntax/toml.vim b/syntax/toml.vim index 82338428..17ea3cf9 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -41,10 +41,16 @@ hi def link tomlBoolean Boolean syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}T\d\{2\}:\d\{2\}:\d\{2\}\%(\.\d\+\)\?\%(Z\|[+-]\d\{2\}:\d\{2\}\)/ display hi def link tomlDate Constant -syn match tomlTable /^\s*\[[^#\[\]]\+\]\s*\(#.*\)\?$/ contains=tomlComment +syn region tomlKeyDq oneline start=/"/ end=/"/ contains=tomlEscape contained +hi def link tomlKeyDq Identifier + +syn region tomlKeySq oneline start=/'/ end=/'/ contained +hi def link tomlKeySq Identifier + +syn region tomlTable oneline start=/^\s*\[[^\[]/ end=/\]/ contains=tomlKeyDq,tomlKeySq hi def link tomlTable Identifier -syn match tomlTableArray /^\s*\[\[[^#\[\]]\+\]\]\s*\(#.*\)\?$/ contains=tomlComment +syn region tomlTableArray oneline start=/^\s*\[\[/ end=/\]\]/ contains=tomlKeyDq,tomlKeySq hi def link tomlTableArray Identifier syn keyword tomlTodo TODO FIXME XXX BUG contained -- cgit v1.2.3