summaryrefslogtreecommitdiffstats
path: root/syntax/toml.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:10:32 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-30 11:10:32 +0100
commitbb85059bacd5b415a012f25679111a0e55d3c6d9 (patch)
tree315b2238ec4840aa4bf00ae48276bdffded07673 /syntax/toml.vim
parent11f53253ad9fd0cd3e7a44ed9f8c80a4f265b46e (diff)
downloadvim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.tar.gz
vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.zip
Update
Diffstat (limited to '')
-rw-r--r--syntax/toml.vim4
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