annotate runtime/syntax/sather.vim @ 30888:54ba95d2d2eb v9.0.0778

patch 9.0.0778: indexing of unknown const type fails during compilation Commit: https://github.com/vim/vim/commit/4913d420e8e8619cff837372bce87683d6fcaa03 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 17 13:13:32 2022 +0100 patch 9.0.0778: indexing of unknown const type fails during compilation Problem: Indexing of unknown const type fails during compilation. Solution: Check for "any" properly. (closes https://github.com/vim/vim/issues/11389)
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Oct 2022 14:15:09 +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: Sather/pSather
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.fleiner.com/vim/syntax/sather.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Sather is a OO-language developped at the International Computer Science
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Homepage: http://www.icsi.berkeley.edu/~sather
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Sather files use .sa as suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword satherExternal extern
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword satherBranch break continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword satherLabel when then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword satherConditional if else elsif end case typecase assert with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match satherConditional "near$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match satherConditional "far$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match satherConditional "near *[^(]"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match satherConditional "far *[^(]"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword satherSynchronize lock guard sync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword satherRepeat loop parloop do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match satherRepeat "while!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match satherRepeat "break!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match satherRepeat "until!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword satherBoolValue true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword satherValue self here cluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword satherOperator new "== != & ^ | && ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword satherOperator and or not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match satherOperator "[#!]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match satherOperator ":-"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword satherType void attr where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match satherType "near *("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match satherType "far *("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword satherStatement return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword satherStorageClass static const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword satherExceptions try raise catch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword satherMethodDecl is pre post
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword satherClassDecl abstract value class include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword satherScopeDecl public private readonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match satherSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn region satherString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=satherSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match satherCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match satherSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match satherNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match satherCommentSkip contained "^\s*\*\($\|\s\+\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn region satherComment2String contained start=+"+ skip=+\\\\\|\\"+ end=+$\|"+ contains=satherSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match satherComment "--.*" contains=satherComment2String,satherCharacter,satherNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn sync ccomment satherComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 let b:current_syntax = "sather"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " vim: ts=8