annotate runtime/syntax/sather.vim @ 5782:5ab2946f7ce5 v7.4.235

updated for version 7.4.235 Problem: It is not easy to get the full path of a command. Solution: Add the exepath() function.
author Bram Moolenaar <bram@vim.org>
date Tue, 01 Apr 2014 21:00:59 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword satherExternal extern
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword satherBranch break continue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword satherLabel when then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword satherConditional if else elsif end case typecase assert with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match satherConditional "near$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match satherConditional "far$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match satherConditional "near *[^(]"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match satherConditional "far *[^(]"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword satherSynchronize lock guard sync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword satherRepeat loop parloop do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match satherRepeat "while!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match satherRepeat "break!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match satherRepeat "until!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword satherBoolValue true false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword satherValue self here cluster
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword satherOperator new "== != & ^ | && ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword satherOperator and or not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match satherOperator "[#!]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match satherOperator ":-"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword satherType void attr where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match satherType "near *("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match satherType "far *("he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword satherStatement return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword satherStorageClass static const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword satherExceptions try raise catch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword satherMethodDecl is pre post
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword satherClassDecl abstract value class include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword satherScopeDecl public private readonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match satherSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn region satherString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=satherSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match satherCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match satherSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match satherNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match satherCommentSkip contained "^\s*\*\($\|\s\+\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn region satherComment2String contained start=+"+ skip=+\\\\\|\\"+ end=+$\|"+ contains=satherSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match satherComment "--.*" contains=satherComment2String,satherCharacter,satherNumber
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn sync ccomment satherComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 if version >= 508 || !exists("did_sather_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let did_sather_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink satherBranch satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink satherLabel satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink satherConditional satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink satherSynchronize satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink satherRepeat satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink satherExceptions satherStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink satherStorageClass satherDeclarative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink satherMethodDecl satherDeclarative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink satherClassDecl satherDeclarative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink satherScopeDecl satherDeclarative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink satherBoolValue satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink satherSpecial satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink satherString satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink satherCharacter satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink satherSpecialCharacter satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink satherNumber satherValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 HiLink satherStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 HiLink satherOperator Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 HiLink satherComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink satherType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink satherValue String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 HiLink satherString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 HiLink satherSpecial String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 HiLink satherCharacter String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 HiLink satherDeclarative Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 HiLink satherExternal PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 let b:current_syntax = "sather"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 " vim: ts=8