annotate runtime/syntax/cl.vim @ 4643:6ec3dada4ad3 v7.3.1069

updated for version 7.3.1069 Problem: Python: memory leaks. Solution: Python patch 28: Purge out DICTKEY_CHECK_EMPTY macros. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Thu, 30 May 2013 14:52:37 +0200
parents 7ffc704cb7c1
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
4186
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
2 " Language: CL
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
3 " (pronounced alphabetically: "Cee-El".
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
4 " CL stands for Clever Language,
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
5 " but the language is CL, not "Clever".
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
6 " CL was created by Multibase, http://www.mbase.com.au)
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7 " Filename extensions: *.ent
4186
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
8 " *.eni
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
9 " Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block
4186
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
10 " Version: 6
7ffc704cb7c1 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4098
diff changeset
11 " Last Change: Mar 06 2013
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
16 syntax clear
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
18 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if version >= 600
4098
058f26a834c4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3830
diff changeset
22 setlocal iskeyword=@,48-57,_,-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 else
4098
058f26a834c4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3830
diff changeset
24 set iskeyword=@,48-57,_,-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn sync lines=300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 "If/else/elsif/endif and while/wend mismatch errors
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
32 syn match clifError "\<wend\>"
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
33 syn match clifError "\<elsif\>"
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
34 syn match clifError "\<else\>"
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
35 syn match clifError "\<endif\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
37 syn match clSpaceError "\s\+$"
826
1cdd2661f34c updated for version 7.0d01
vimboss
parents: 7
diff changeset
38
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " If and while regions
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
40 syn region clLoop transparent matchgroup=clWhile start="\<while\>" matchgroup=clWhile end="\<wend\>" contains=ALLBUT,clBreak,clProcedure
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
41 syn region clIf transparent matchgroup=clConditional start="\<if\>" matchgroup=clConditional end="\<endif\>" contains=ALLBUT,clBreak,clProcedure
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Make those TODO notes and debugging stand out!
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
44 syn keyword clTodo contained TODO BUG DEBUG FIX
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
45 syn match clNeedsWork contained "NEED[S]*\s\s*WORK"
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
46 syn keyword clDebug contained debug
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
48 syn match clComment "#.*$" contains=clTodo,clNeedsWork,@Spell
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
49 syn region clProcedure oneline start="^\s*[{}]" end="$"
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
50 syn match clInclude "^\s*include\s.*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " We don't put "debug" in the clSetOptions;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " we contain it in clSet so we can make it stand out.
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
54 syn keyword clSetOptions transparent aauto abort align convert E fill fnum goback hangup justify null_exit output rauto rawprint rawdisplay repeat skip tab trim
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
55 syn match clSet "^\s*set\s.*" contains=clSetOptions,clDebug
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
57 syn match clPreProc "^\s*#P.*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
59 syn keyword clConditional else elsif
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
60 syn keyword clWhile continue endloop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " 'break' needs to be a region so we can sync on it above.
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
62 syn region clBreak oneline start="^\s*break" end="$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
64 syn match clOperator "[!;|)(:.><+*=-]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
66 syn match clNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
68 syn region clString matchgroup=clQuote start=+"+ end=+"+ skip=+\\"+ contains=@Spell
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
69 syn region clString matchgroup=clQuote start=+'+ end=+'+ skip=+\\'+ contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
71 syn keyword clReserved ERROR EXIT INTERRUPT LOCKED LREPLY MODE MCOL MLINE MREPLY NULL REPLY V1 V2 V3 V4 V5 V6 V7 V8 V9 ZERO BYPASS GOING_BACK AAUTO ABORT ABORT ALIGN BIGE CONVERT FNUM GOBACK HANGUP JUSTIFY NEXIT OUTPUT RAUTO RAWDISPLAY RAWPRINT REPEAT SKIP TAB TRIM LCOUNT PCOUNT PLINES SLINES SCOLS MATCH LMATCH
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
73 syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
75 syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " For version 5.8 and later: only when an item doesn't have highlighting yet
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
80 if version >= 508 || !exists("did_cl_syntax_inits")
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
81 if version < 508
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
82 let did_cl_syntax_inits = 1
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
83 command -nargs=+ HiLink hi link <args>
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
84 else
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
85 command -nargs=+ HiLink hi def link <args>
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
86 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
88 HiLink clifError Error
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
89 HiLink clSpaceError Error
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
90 HiLink clWhile Repeat
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
91 HiLink clConditional Conditional
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
92 HiLink clDebug Debug
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
93 HiLink clNeedsWork Todo
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
94 HiLink clTodo Todo
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
95 HiLink clComment Comment
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
96 HiLink clProcedure Procedure
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
97 HiLink clBreak Procedure
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
98 HiLink clInclude Include
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
99 HiLink clSetOption Statement
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
100 HiLink clSet Identifier
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
101 HiLink clPreProc PreProc
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
102 HiLink clOperator Operator
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
103 HiLink clNumber Number
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
104 HiLink clString String
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
105 HiLink clQuote Delimiter
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
106 HiLink clReserved Identifier
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
107 HiLink clFunction Function
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
108 HiLink clStatement Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
110 delcommand HiLink
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 let b:current_syntax = "cl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3830
04592728474a Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3513
diff changeset
115 " vim: ts=8 sw=8