0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00
Files
vim/runtime/syntax/generator
Aliaksei Budavei dfcef890cb runtime(vim): Distinguish Vim9 constructor definitions from the :new ex command (#14050)
With the arrival of Vim9 classes, the syntax must allow for
_new_ constructors; multiple constructor definitions are
supported for a class, provided distinct suffix-names are
used.  Currently, the defined constructors match either
vimCommand or vimFunctionError (for any newBar).

For example:
------------------------------------------------------------
vim9script

class Foo
    def new()
    enddef

    def newBar()
    enddef
endclass
------------------------------------------------------------

Since every constructor is required to bear a lower-cased
_new_ prefix name, it should suffice to distinguish them
from functions, and so there are no new highlight or syntax
groups introduced.


Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-18 19:02:14 +01:00
..

Generator of Vim Script Syntax File

This directory contains a Vim Script generator, that will parse the Vim source file and generate a vim.vim syntax file.

Files in this directory where copied from https://github.com/vim-jp/syntax-vim-ex/ and included here on Feb, 13th, 2024 for the Vim Project.

  • Maintainer: Hirohito Higashi
  • License: Vim License

How to generate

$ make

This will generate ../vim.vim

Files

Name Description
Makefile Makefile to generate ../vim.vim
README.md This file
gen_syntax_vim.vim Script to generate vim.vim
update_date.vim Script to update "Last Change:"
vim.vim.base Template for vim.vim