annotate runtime/syntax/snobol4.vim @ 910:abff2f6a3ad7 v7.0.036

updated for version 7.0-036
author vimboss
date Tue, 11 Jul 2006 20:36:45 +0000
parents b933657f7c9d
children 18ee39301b82
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>
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
4 " Site: http://rms.republika.pl/vim/syntax/snobol4.vim
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
5 " Last change: 2006 may 1
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
6 " Changes:
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
7 " - nonexistent Snobol4 keywords displayed as errors.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
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 syntax case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Vanilla Snobol4 keywords
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
19 syn keyword snobol4Keyword any apply arb arbno arg array
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
20 syn keyword snobol4Keyword break
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
21 syn keyword snobol4Keyword char clear code collect convert copy
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
22 syn keyword snobol4Keyword data datatype date define detach differ dump dupl
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
23 syn keyword snobol4Keyword endfile eq eval
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
24 syn keyword snobol4Keyword field
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
25 syn keyword snobol4Keyword ge gt ident
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
26 syn keyword snobol4Keyword input integer item
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
27 syn keyword snobol4Keyword le len lgt local lpad lt
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
28 syn keyword snobol4Keyword ne notany
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
29 syn keyword snobol4Keyword opsyn output
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
30 syn keyword snobol4Keyword pos prototype
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
31 syn keyword snobol4Keyword remdr replace rpad rpos rtab
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
32 syn keyword snobol4Keyword size span stoptr
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
33 syn keyword snobol4Keyword tab table time trace trim terminal
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
34 syn keyword snobol4Keyword unload
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
35 syn keyword snobol4Keyword value
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Spitbol keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " CSNOBOL keywords
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
38 syn keyword snobol4Keyword sset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region snobol4String matchgroup=Quote start=+"+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn region snobol4String matchgroup=Quote start=+'+ skip=+\\'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match snobol4Statement "^-[^ ][^ ]*"
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
43 syn match snobol4Comment "^\*.*$"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
44 syn match snobol4Comment ";\*.*$"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
45 syn match snobol4Constant "[^a-z]\.[a-z][a-z0-9\-]*"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
46 syn region snobol4Goto start=":[sf]\{0,1}(" end=")\|$\|;" contains=ALLBUT,snobol4ParenError
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
47 syn match snobol4Number "\<\d*\(\.\d\d*\)*\>"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
48 syn match snobol4BogusSysVar "&\w\{1,}"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
49 syn match snobol4SysVar "&\(abort\|alphabet\|anchor\|arb\|bal\|case\|code\|dump\|errlimit\|errtext\|errtype\|fail\|fence\|fnclevel\|ftrace\|fullscan\|input\|lastno\|lcase\|maxlngth\|output\|parm\|rem\|rtntype\|stcount\|stfcount\|stlimit\|stno\|succeed\|trace\|trim\|ucase\)"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
50 syn match snobol4Label "^[^-\.\+ \t]\S\{1,}"
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
51 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Parens matching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn cluster snobol4ParenGroup contains=snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn region snobol4Paren transparent start='(' end=')' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match snobol4ParenError display "[\])]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match snobol4ErrInParen display contained "[\]{}]\|<%\|%>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn region snobol4Bracket transparent start='\[\|<:' end=']\|:>' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInParen
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
58 syn match snobol4ErrInBracket display contained "[){}]\|<%\|%>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " optional shell shebang line
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
61 syn match snobol4Comment "^\#\!.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " 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
67 if version >= 508 || !exists("did_snobol4_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 let did_snobol4_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
75 HiLink snobol4Constant Constant
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
76 HiLink snobol4Label Label
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
77 HiLink snobol4Goto Repeat
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
78 HiLink snobol4Conditional Conditional
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
79 HiLink snobol4Repeat Repeat
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
80 HiLink snobol4Number Number
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
81 HiLink snobol4Error Error
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
82 HiLink snobol4Statement PreProc
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
83 HiLink snobol4String String
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
84 HiLink snobol4Comment Comment
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
85 HiLink snobol4Special Special
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
86 HiLink snobol4Todo Todo
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
87 HiLink snobol4Keyword Statement
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
88 HiLink snobol4Function Statement
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
89 HiLink snobol4Keyword Keyword
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
90 HiLink snobol4MathsOperator Operator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 HiLink snobol4ParenError snobol4Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 HiLink snobol4ErrInParen snobol4Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink snobol4ErrInBracket snobol4Error
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
94 HiLink snobol4SysVar Keyword
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
95 HiLink snobol4BogusSysVar snobol4Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 let b:current_syntax = "snobol4"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " vim: ts=8