Vim/syntaxes/vimrc.tmLanguage.json

57 lines
1.3 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "vimrc",
"fileTypes": [".vimrc"],
"scopeName": "source.vimrc",
"patterns": [
{
"name": "comment.line",
"match": "(^| |\t)\".*$"
},
{
"name": "entity.name.function",
"match": "^( |\t)*(map|nmap|vmap|smap|xmap|omap|map!|imap|lmap|cmap)"
},
{
"name": "entity.name.function",
"match": "^( |\t)*(noremap|nnoremap|vnoremap|snoremap|xnoremap|onoremap|noremap!|inoremap|lnoremap|cnoremap)"
},
{
"name": "entity.name.function",
"match": "^( |\t)*(unmap|nunmap|vunmap|sunmap|xunmap|ounmap|unmap!|iunmap|lunmap|cunmap)"
},
{
"name": "entity.name.function",
"match": "^( |\t)*set"
},
{
"name": "constant",
"match": "(?i)<Leader>"
},
{
"name": "constant",
"match": "(?i)<(CR|Enter|Return)>"
},
{
"name": "constant",
"match": "(?i)<(BS|Del|Space)>"
},
{
"name": "constant",
"match": "(?i)<Esc>"
},
{
"name": "constant",
"match": "(?i)<(Up|Down|Left|Right)>"
},
{
"name": "constant",
"match": "(?i)<[CD]-.>"
},
{
"name": "string.unquoted",
"match": "(?i)[a-z]+(\\.[a-z]+)+"
}
]
}