Mercurial > vim
annotate runtime/syntax/slpspi.vim @ 33506:f61713271934 v9.0.2002
patch 9.0.2002: Vim9: need cleanup of class related interface code
Commit: https://github.com/vim/vim/commit/b852305dbf42f1206ecc6ae414fc200235fe2963
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Oct 8 19:07:39 2023 +0200
patch 9.0.2002: Vim9: need cleanup of class related interface code
Problem: Vim9: need cleanup of class related interface code
Solution: Remove the unused class variable and class method related code
for interfaces.
Remove unused class variable and class method related code for
interfaces.
Refactor the code.
Optimize the object/class member double lookup in compile_lhs().
Change unused global functions to static functions.
closes: #13302
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 08 Oct 2023 19:15:06 +0200 |
parents | 1218c5353e2b |
children |
rev | line source |
---|---|
389 | 1 " Vim syntax file |
11062 | 2 " Language: RFC 2614 - An API for Service Location SPI file |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2006-04-19 | |
389 | 5 |
6 if exists("b:current_syntax") | |
7 finish | |
8 endif | |
9 | |
10 let s:cpo_save = &cpo | |
11 set cpo&vim | |
12 | |
13 syn keyword slpspiTodo contained TODO FIXME XXX NOTE | |
14 | |
15 syn region slpspiComment display oneline start='^[#;]' end='$' | |
16 \ contains=slpspiTodo,@Spell | |
17 | |
18 syn match slpspiBegin display '^' | |
19 \ nextgroup=slpspiKeyType, | |
20 \ slpspiComment skipwhite | |
21 | |
22 syn keyword slpspiKeyType contained PRIVATE PUBLIC | |
23 \ nextgroup=slpspiString skipwhite | |
24 | |
25 syn match slpspiString contained '\S\+' | |
26 \ nextgroup=slpspiKeyFile skipwhite | |
27 | |
28 syn match slpspiKeyFile contained '\S\+' | |
29 | |
30 hi def link slpspiTodo Todo | |
31 hi def link slpspiComment Comment | |
32 hi def link slpspiKeyType Type | |
33 hi def link slpspiString Identifier | |
34 hi def link slpspiKeyFile String | |
35 | |
36 let b:current_syntax = "slpspi" | |
37 | |
38 let &cpo = s:cpo_save | |
39 unlet s:cpo_save |