diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-10 16:56:22 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-10 16:56:22 +0200 |
commit | 0de043adbc144510635702dadedc946e3c69f64e (patch) | |
tree | 78e5d363305935cf5653a3f510ab86bb019c3199 /syntax/toml.vim | |
parent | 67fcbd2a8632d5ab7895e34acb084117e5d0ea17 (diff) | |
download | vim-polyglot-0de043adbc144510635702dadedc946e3c69f64e.tar.gz vim-polyglot-0de043adbc144510635702dadedc946e3c69f64e.zip |
Update
Diffstat (limited to 'syntax/toml.vim')
-rw-r--r-- | syntax/toml.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/syntax/toml.vim b/syntax/toml.vim index f5545803..4ead2034 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -27,10 +27,11 @@ syn region tomlString oneline start=/'/ end=/'/ syn region tomlString start=/'''/ end=/'''/ hi def link tomlString String -syn match tomlInteger /\<-\?\d\+\>/ display +syn match tomlInteger /\<[+-]\=[0-9]\(_\=\d\)*\>/ display hi def link tomlInteger Number -syn match tomlFloat /\<-\?\d\+\.\d\+\>/ display +syn match tomlFloat /\<[+-]\=[0-9]\(_\=\d\)*\.\d\+\>/ display +syn match tomlFloat /\<[+-]\=[0-9]\(_\=\d\)*\(\.[0-9]\(_\=\d\)*\)\=[eE][+-]\=[0-9]\(_\=\d\)*\>/ display hi def link tomlFloat Float syn match tomlBoolean /\<\%(true\|false\)\>/ display |