1
0
forked from aniani/vim

runtime(vim): Update base-syntax file, improve class, enum and interface highlighting

- Enable folding of class, enum and interface declarations.
- Highlight constructor names with the Function highlight group, like
  other special methods.
- Mark function definitions using special method names as errors.
- Highlight :type arguments.

fixes: #14393#issuecomment-2042796198.
closes: #13810

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-10-06 17:00:48 +02:00
committed by Christian Brabandt
parent ec0229414b
commit 818c641b6f
152 changed files with 1895 additions and 1018 deletions

View File

@@ -1,7 +1,7 @@
" Vim syntax file generator
" Language: Vim script
" Maintainer: Hirohito Higashi (h_east)
" Last Change: 2024 Sep 14
" Last Change: 2024 Oct 04
let s:keepcpo= &cpo
set cpo&vim
@@ -285,6 +285,7 @@ function! s:get_vim_command_type(cmd_name)
behave
call
catch
class
def
delcommand
doautoall
@@ -297,13 +298,19 @@ function! s:get_vim_command_type(cmd_name)
echon
echowindow
elseif
endclass
enddef
endenum
endfunction
endinterface
enum
execute
export
final
for
function
if
interface
insert
let
loadkeymap
@@ -314,6 +321,7 @@ function! s:get_vim_command_type(cmd_name)
new
normal
popup
public
return
set
setglobal
@@ -321,9 +329,12 @@ function! s:get_vim_command_type(cmd_name)
sleep
smagic
snomagic
static
substitute
syntax
this
throw
type
unlet
unmap
var