annotate runtime/syntax/snobol4.vim @ 12548:6080d29645ae

Added tag v8.0.1152 for changeset aa3f6d093f4b89f84e4a31f3febb6481c4229580
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Sep 2017 19:15:05 +0200
parents 46763b01cd9a
children 371ceeebbdaa
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
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
5 " Last change: 2006 may 10
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
6 " Changes:
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
7 " - strict snobol4 mode (set snobol4_strict_mode to activate)
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
8 " - incorrect HL of dots in strings corrected
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
9 " - incorrect HL of dot-variables in parens corrected
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
10 " - one character labels weren't displayed correctly.
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
11 " - nonexistent Snobol4 keywords displayed as errors.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
13 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
14 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syntax case ignore
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
19
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
20 " Snobol4 keywords
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
21 syn keyword snobol4Keyword any apply arb arbno arg array
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
22 syn keyword snobol4Keyword break
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
23 syn keyword snobol4Keyword char clear code collect convert copy
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
24 syn keyword snobol4Keyword data datatype date define detach differ dump dupl
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
25 syn keyword snobol4Keyword endfile eq eval
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
26 syn keyword snobol4Keyword field
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
27 syn keyword snobol4Keyword ge gt ident
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
28 syn keyword snobol4Keyword input integer item
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
29 syn keyword snobol4Keyword le len lgt local lpad lt
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
30 syn keyword snobol4Keyword ne notany
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
31 syn keyword snobol4Keyword opsyn output
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
32 syn keyword snobol4Keyword pos prototype
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
33 syn keyword snobol4Keyword remdr replace rpad rpos rtab rewind
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
34 syn keyword snobol4Keyword size span stoptr
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
35 syn keyword snobol4Keyword tab table time trace trim terminal
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
36 syn keyword snobol4Keyword unload
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
37 syn keyword snobol4Keyword value
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
38
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " CSNOBOL keywords
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
40 syn keyword snobol4ExtKeyword breakx
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
41 syn keyword snobol4ExtKeyword char chop
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
42 syn keyword snobol4ExtKeyword date delete
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
43 syn keyword snobol4ExtKeyword exp
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
44 syn keyword snobol4ExtKeyword freeze function
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
45 syn keyword snobol4ExtKeyword host
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
46 syn keyword snobol4ExtKeyword io_findunit
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
47 syn keyword snobol4ExtKeyword label lpad leq lge lle llt lne log
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
48 syn keyword snobol4ExtKeyword ord
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
49 syn keyword snobol4ExtKeyword reverse rpad rsort rename
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
50 syn keyword snobol4ExtKeyword serv_listen sset set sort sqrt substr
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
51 syn keyword snobol4ExtKeyword thaw
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
52 syn keyword snobol4ExtKeyword vdiffer
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
54 syn region snobol4String matchgroup=Quote start=+"+ end=+"+
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
55 syn region snobol4String matchgroup=Quote start=+'+ end=+'+
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
56 syn match snobol4BogusStatement "^-[^ ][^ ]*"
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
57 syn match snobol4Statement "^-\(include\|copy\|module\|line\|plusopts\|case\|error\|noerrors\|list\|unlist\|execute\|noexecute\|copy\)"
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
58 syn match snobol4Constant /"[^a-z"']\.[a-z][a-z0-9\-]*"/hs=s+1
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
59 syn region snobol4Goto start=":[sf]\{0,1}(" end=")\|$\|;" contains=ALLBUT,snobol4ParenError
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
60 syn match snobol4Number "\<\d*\(\.\d\d*\)*\>"
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
61 syn match snobol4BogusSysVar "&\w\{1,}"
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
62 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\)"
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
63 syn match snobol4ExtSysVar "&\(gtrace\|line\|file\|lastline\|lastfile\)"
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
64 syn match snobol4Label "\(^\|;\)[^-\.\+ \t\*\.]\{1,}[^ \t\*\;]*"
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
65 syn match snobol4Comment "\(^\|;\)\([\*\|!;#].*$\)"
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
66
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " Parens matching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn cluster snobol4ParenGroup contains=snobol4ParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn region snobol4Paren transparent start='(' end=')' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInBracket
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match snobol4ParenError display "[\])]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match snobol4ErrInParen display contained "[\]{}]\|<%\|%>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn region snobol4Bracket transparent start='\[\|<:' end=']\|:>' contains=ALLBUT,@snobol4ParenGroup,snobol4ErrInParen
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 7
diff changeset
73 syn match snobol4ErrInBracket display contained "[){}]\|<%\|%>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " optional shell shebang line
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 857
diff changeset
76 " syn match snobol4Comment "^\#\!.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
79 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link snobol4Constant Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link snobol4Label Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link snobol4Goto Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
84 hi def link snobol4Conditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link snobol4Repeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link snobol4Number Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link snobol4Error Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link snobol4Statement PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link snobol4BogusStatement snobol4Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
90 hi def link snobol4String String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link snobol4Comment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link snobol4Special Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
93 hi def link snobol4Todo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
94 hi def link snobol4Keyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
95 hi def link snobol4Function Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
96 hi def link snobol4MathsOperator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
97 hi def link snobol4ParenError snobol4Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
98 hi def link snobol4ErrInParen snobol4Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
99 hi def link snobol4ErrInBracket snobol4Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
100 hi def link snobol4SysVar Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
101 hi def link snobol4BogusSysVar snobol4Error
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
102 if exists("snobol4_strict_mode")
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
103 hi def link snobol4ExtSysVar WarningMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
104 hi def link snobol4ExtKeyword WarningMsg
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
105 else
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
106 hi def link snobol4ExtSysVar snobol4SysVar
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
107 hi def link snobol4ExtKeyword snobol4Keyword
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
108 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 let b:current_syntax = "snobol4"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 " vim: ts=8