mirror of
https://github.com/neovim/neovim.git
synced 2026-01-03 01:46:31 +10:00
This reverts commits:
- 6b652a785033fd4164e049492a7327c1ed7c3e5f
- 2f689d5abde0ccddca9e20d8c93a0299bd054e32
- a025a46d4169587145fb54f04af349cd05cb6122
Several email addresses that are known to be valid caused bounces
due to an issue with my email setup. The previous commits incorrectly
marked these addresses as invalid. So revert the whole thing again.
62d8f3dab5
N/A patch:
vim-patch:2f689d5: runtime: mark more invalid email addresses
Co-authored-by: Christian Brabandt <cb@256bit.org>
49 lines
1.6 KiB
VimL
49 lines
1.6 KiB
VimL
" Vim syntax file
|
|
" Language: KDL
|
|
" Maintainer: Aram Drevekenin <aram@poor.dev>
|
|
" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>
|
|
" Latest Revision: 2024-06-16
|
|
|
|
" quit when a syntax file was already loaded
|
|
if exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
syn match kdlNode '\v(\w|-|\=)' display
|
|
syn match kdlBool '\v(true|false)' display
|
|
|
|
syn keyword kdlTodo contained TODO FIXME XXX NOTE
|
|
syn region kdlComment start="//" end="$" contains=kdlTodo,@Spell
|
|
syn region kdlComment start="/\*" end="\*/" contains=kdlTodo,@Spell
|
|
|
|
" Regular int like number with - + or nothing in front
|
|
syn match kdlNumber '\d\+'
|
|
syn match kdlNumber '[-+]\d\+'
|
|
|
|
" Floating point number with decimal no E or e (+,-)
|
|
syn match kdlNumber '\d\+\.\d*' contained display
|
|
syn match kdlNumber '[-+]\d\+\.\d*' contained display
|
|
|
|
" Floating point like number with E and no decimal point (+,-)
|
|
syn match kdlNumber '[-+]\=\d[[:digit:]]*[eE][\-+]\=\d\+' contained display
|
|
syn match kdlNumber '\d[[:digit:]]*[eE][\-+]\=\d\+' contained display
|
|
|
|
" Floating point like number with E and decimal point (+,-)
|
|
syn match kdlNumber '[-+]\=\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' contained display
|
|
syn match kdlNumber '\d[[:digit:]]*\.\d*[eE][\-+]\=\d\+' contained display
|
|
|
|
syn region kdlString start='"' end='"' skip='\\\\\|\\"' display
|
|
|
|
syn region kdlChildren start="{" end="}" contains=kdlString,kdlNumber,kdlNode,kdlBool,kdlComment
|
|
|
|
hi def link kdlTodo Todo
|
|
hi def link kdlComment Comment
|
|
hi def link kdlNode Statement
|
|
hi def link kdlBool Boolean
|
|
hi def link kdlString String
|
|
hi def link kdlNumber Number
|
|
|
|
let b:current_syntax = "kdl"
|
|
|
|
" vim: sw=2 sts=2 et
|