Mercurial > vim
annotate runtime/syntax/sather.vim @ 26356:0884f2be6c2a v8.2.3709
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Commit: https://github.com/vim/vim/commit/fad2742d538123abb9b384a053fd581f2acf6bb0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 30 21:58:19 2021 +0000
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Problem: Vim9: backtick expression expanded when not desired.
Solution: Only expand a backtick expression for commands that expand their
argument. Remove a few outdated TODO comments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Nov 2021 23:00:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Sather/pSather | |
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> | |
4 " URL: http://www.fleiner.com/vim/syntax/sather.vim | |
5 " Last Change: 2003 May 11 | |
6 | |
7 " Sather is a OO-language developped at the International Computer Science | |
8 " Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather. | |
9 " Homepage: http://www.icsi.berkeley.edu/~sather | |
10 " Sather files use .sa as suffix | |
11 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
13 if exists("b:current_syntax") |
7 | 14 finish |
15 endif | |
16 | |
17 " keyword definitions | |
18 syn keyword satherExternal extern | |
19 syn keyword satherBranch break continue | |
20 syn keyword satherLabel when then | |
21 syn keyword satherConditional if else elsif end case typecase assert with | |
22 syn match satherConditional "near$" | |
23 syn match satherConditional "far$" | |
24 syn match satherConditional "near *[^(]"he=e-1 | |
25 syn match satherConditional "far *[^(]"he=e-1 | |
26 syn keyword satherSynchronize lock guard sync | |
27 syn keyword satherRepeat loop parloop do | |
28 syn match satherRepeat "while!" | |
29 syn match satherRepeat "break!" | |
30 syn match satherRepeat "until!" | |
31 syn keyword satherBoolValue true false | |
32 syn keyword satherValue self here cluster | |
33 syn keyword satherOperator new "== != & ^ | && || | |
34 syn keyword satherOperator and or not | |
35 syn match satherOperator "[#!]" | |
36 syn match satherOperator ":-" | |
37 syn keyword satherType void attr where | |
38 syn match satherType "near *("he=e-1 | |
39 syn match satherType "far *("he=e-1 | |
40 syn keyword satherStatement return | |
41 syn keyword satherStorageClass static const | |
42 syn keyword satherExceptions try raise catch | |
43 syn keyword satherMethodDecl is pre post | |
44 syn keyword satherClassDecl abstract value class include | |
45 syn keyword satherScopeDecl public private readonly | |
46 | |
47 | |
48 syn match satherSpecial contained "\\\d\d\d\|\\." | |
49 syn region satherString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=satherSpecial | |
50 syn match satherCharacter "'[^\\]'" | |
51 syn match satherSpecialCharacter "'\\.'" | |
52 syn match satherNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" | |
53 syn match satherCommentSkip contained "^\s*\*\($\|\s\+\)" | |
54 syn region satherComment2String contained start=+"+ skip=+\\\\\|\\"+ end=+$\|"+ contains=satherSpecial | |
55 syn match satherComment "--.*" contains=satherComment2String,satherCharacter,satherNumber | |
56 | |
57 | |
58 syn sync ccomment satherComment | |
59 | |
60 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
61 " Only when an item doesn't have highlighting yet |
7 | 62 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
63 hi def link satherBranch satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
64 hi def link satherLabel satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
65 hi def link satherConditional satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link satherSynchronize satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link satherRepeat satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link satherExceptions satherStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link satherStorageClass satherDeclarative |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link satherMethodDecl satherDeclarative |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link satherClassDecl satherDeclarative |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
72 hi def link satherScopeDecl satherDeclarative |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link satherBoolValue satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link satherSpecial satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link satherString satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
76 hi def link satherCharacter satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link satherSpecialCharacter satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link satherNumber satherValue |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
79 hi def link satherStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
80 hi def link satherOperator Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
81 hi def link satherComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link satherType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
83 hi def link satherValue String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
84 hi def link satherString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
85 hi def link satherSpecial String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
86 hi def link satherCharacter String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
87 hi def link satherDeclarative Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
88 hi def link satherExternal PreCondit |
7 | 89 |
90 let b:current_syntax = "sather" | |
91 | |
92 " vim: ts=8 |