annotate runtime/syntax/kwt.vim @ 19952:82ea10d554fb v8.2.0532

patch 8.2.0532: cannot use simplify() as a method Commit: https://github.com/vim/vim/commit/7035fd9d909c49cf5105a53753c1772c193d05b8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 8 20:03:52 2020 +0200 patch 8.2.0532: cannot use simplify() as a method Problem: Cannot use simplify() as a method. Solution: Add FEARG_1. (closes https://github.com/vim/vim/issues/5996)
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Apr 2020 20:15:04 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: kimwitu++
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
3 " Maintainer: Michael Piefel <entwurf@piefel.de>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2 May 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
6 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Read the C++ syntax to start with
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
12 runtime! syntax/cpp.vim
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
13 unlet b:current_syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " kimwitu++ extentions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Don't stop at eol, messes around with CPP mode, but gives line spanning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " strings in unparse rules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region cCppString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword cType integer real casestring nocasestring voidptr list
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword cType uview rview uview_enum rview_enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " avoid unparsing rule sth:view being scanned as label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn clear cUserCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match cUserCont "^\s*\I\i*\s*:$" contains=cUserLabel contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match cUserCont ";\s*\I\i*\s*:$" contains=cUserLabel contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match cUserCont "^\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match cUserCont ";\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " highlight phylum decls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match kwtPhylum "^\I\i*:$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match kwtPhylum "^\I\i*\s*{\s*\(!\|\I\)\i*\s*}\s*:$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword kwtStatement with foreach afterforeach provided
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match kwtDecl "%\(uviewvar\|rviewvar\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match kwtDecl "^%\(uview\|rview\|ctor\|dtor\|base\|storageclass\|list\|attr\|member\|option\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match kwtOption "no-csgio\|no-unparse\|no-rewrite\|no-printdot\|no-hashtables\|smart-pointer\|weak-pointer"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match kwtSep "^%}$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match kwtSep "^%{\(\s\+\I\i*\)*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match kwtCast "\<phylum_cast\s*<"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match kwtCast "\<phylum_cast\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " match views, remove paren error in brackets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn clear cErrInBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match cErrInBracket contained ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match kwtViews "\(\[\|<\)\@<=[ [:alnum:]_]\{-}:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " match rule bodies
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region kwtUnpBody transparent keepend extend fold start="->\s*\[" start="^\s*\[" skip="\$\@<!{\_.\{-}\$\@<!}" end="\s]\s\=;\=$" end="^]\s\=;\=$" end="}]\s\=;\=$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn region kwtRewBody transparent keepend extend fold start="->\s*<" start="^\s*<" end="\s>\s\=;\=$" end="^>\s\=;\=$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
54 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
56 hi def link kwtStatement cppStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
57 hi def link kwtDecl cppStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link kwtCast cppStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link kwtSep Delimiter
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link kwtViews Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
61 hi def link kwtPhylum Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
62 hi def link kwtOption PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 "hi def link cText Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn sync lines=300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let b:current_syntax = "kwt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " vim: ts=8