annotate runtime/syntax/snobol4.vim @ 659:d6a69271cb9a v7.0194

updated for version 7.0194
author vimboss
date Wed, 08 Feb 2006 09:20:24 +0000
parents 3fc0f57ecb91
children b933657f7c9d
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: SNOBOL4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Rafal Sulejman <rms@poczta.onet.pl>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last change: 2004 May 16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Vanilla Snobol4 keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword snobol4Keywoard any apply arb arbno arg array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword snobol4Keywoard break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword snobol4Keywoard char clear code collect convert copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword snobol4Keywoard data datatype date define detach differ dump dupl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword snobol4Keywoard endfile eq eval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword snobol4Keywoard field
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword snobol4Keywoard ge gt ident
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword snobol4Keywoard input integer item
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword snobol4Keywoard le len lgt local lpad lt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword snobol4Keywoard ne notany
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword snobol4Keywoard opsyn output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword snobol4Keywoard pos prototype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword snobol4Keywoard remdr replace rpad rpos rtab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword snobol4Keywoard size span stoptr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword snobol4Keywoard tab table time trace trim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword snobol4Keywoard unload
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword snobol4Keywoard value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Spitbol keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " CSNOBOL keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword snobol4Keywoard sset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region snobol4String matchgroup=Quote start=+"+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region snobol4String matchgroup=Quote start=+'+ skip=+\\'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match snobol4Label "^[^- \t][^ \t]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match snobol4Statement "^-[^ ][^ ]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match snobol4Comment "^*.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match Constant "\.[a-z][a-z0-9\-]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 "syn match snobol4Label ":\([sf]*([^)]*)\)*" contains=ALLBUT,snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn region snobol4Label start=":(" end=")" contains=ALLBUT,snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn region snobol4Label start=":f(" end=")" contains=ALLBUT,snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region snobol4Label start=":s(" end=")" contains=ALLBUT,snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match snobol4Number "\<\d*\(\.\d\d*\)*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Parens matching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn cluster snobol4ParenGroup contains=snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region snobol4Paren transparent start='(' end=')' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match snobol4ParenError display "[\])]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match snobol4ErrInParen display contained "[\]{}]\|<%\|%>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn region snobol4Bracket transparent start='\[\|<:' end=']\|:>' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInParen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match snobol4ErrInBracket display contained "[);{}]\|<%\|%>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " optional shell shebang line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match snobol4Comment "^\#\!.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " 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
63 if version >= 508 || !exists("did_snobol4_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let did_snobol4_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink snobol4Label Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink snobol4Conditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink snobol4Repeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink snobol4Number Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink snobol4Error Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink snobol4Statement PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink snobol4String String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink snobol4Comment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink snobol4Special Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink snobol4Todo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink snobol4Keyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink snobol4Function Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink snobol4Keyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink snobol4MathsOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink snobol4ParenError snobol4Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink snobol4ErrInParen snobol4Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink snobol4ErrInBracket snobol4Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 let b:current_syntax = "snobol4"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " vim: ts=8