diff options
Diffstat (limited to 'syntax/toml.vim')
-rw-r--r-- | syntax/toml.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syntax/toml.vim b/syntax/toml.vim index 17ea3cf9..7a5b44f2 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -38,7 +38,9 @@ syn match tomlBoolean /\<\%(true\|false\)\>/ display hi def link tomlBoolean Boolean " https://tools.ietf.org/html/rfc3339 -syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}T\d\{2\}:\d\{2\}:\d\{2\}\%(\.\d\+\)\?\%(Z\|[+-]\d\{2\}:\d\{2\}\)/ display +syn match tomlDate /\d\{4\}-\d\{2\}-\d\{2\}/ display +syn match tomlDate /\d\{2\}:\d\{2\}:\d\{2\}\%(\.\d\+\)\?/ display +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 region tomlKeyDq oneline start=/"/ end=/"/ contains=tomlEscape contained |