Mercurial > vim
annotate runtime/syntax/cl.vim @ 10840:2cb1b68ef02e
Added tag v8.0.0309 for changeset 287049007bbccf7e1766e1c0df75573b28d7093c
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Feb 2017 16:45:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
4186 | 2 " Language: CL |
3 " (pronounced alphabetically: "Cee-El". | |
4 " CL stands for Clever Language, | |
5 " but the language is CL, not "Clever". | |
6 " CL was created by Multibase, http://www.mbase.com.au) | |
3513 | 7 " Filename extensions: *.ent |
4186 | 8 " *.eni |
3513 | 9 " Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block |
4186 | 10 " Version: 6 |
11 " Last Change: Mar 06 2013 | |
7 | 12 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4186
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:
4186
diff
changeset
|
14 if exists("b:current_syntax") |
3830 | 15 finish |
7 | 16 endif |
17 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4186
diff
changeset
|
18 setlocal iskeyword=@,48-57,_,- |
7 | 19 |
20 syn case ignore | |
21 | |
22 syn sync lines=300 | |
23 | |
24 "If/else/elsif/endif and while/wend mismatch errors | |
3830 | 25 syn match clifError "\<wend\>" |
26 syn match clifError "\<elsif\>" | |
27 syn match clifError "\<else\>" | |
28 syn match clifError "\<endif\>" | |
7 | 29 |
3830 | 30 syn match clSpaceError "\s\+$" |
826 | 31 |
7 | 32 " If and while regions |
3830 | 33 syn region clLoop transparent matchgroup=clWhile start="\<while\>" matchgroup=clWhile end="\<wend\>" contains=ALLBUT,clBreak,clProcedure |
34 syn region clIf transparent matchgroup=clConditional start="\<if\>" matchgroup=clConditional end="\<endif\>" contains=ALLBUT,clBreak,clProcedure | |
7 | 35 |
36 " Make those TODO notes and debugging stand out! | |
3830 | 37 syn keyword clTodo contained TODO BUG DEBUG FIX |
38 syn match clNeedsWork contained "NEED[S]*\s\s*WORK" | |
39 syn keyword clDebug contained debug | |
7 | 40 |
3830 | 41 syn match clComment "#.*$" contains=clTodo,clNeedsWork,@Spell |
42 syn region clProcedure oneline start="^\s*[{}]" end="$" | |
43 syn match clInclude "^\s*include\s.*" | |
7 | 44 |
45 " We don't put "debug" in the clSetOptions; | |
46 " we contain it in clSet so we can make it stand out. | |
3830 | 47 syn keyword clSetOptions transparent aauto abort align convert E fill fnum goback hangup justify null_exit output rauto rawprint rawdisplay repeat skip tab trim |
48 syn match clSet "^\s*set\s.*" contains=clSetOptions,clDebug | |
7 | 49 |
3830 | 50 syn match clPreProc "^\s*#P.*" |
7 | 51 |
3830 | 52 syn keyword clConditional else elsif |
53 syn keyword clWhile continue endloop | |
7 | 54 " 'break' needs to be a region so we can sync on it above. |
3830 | 55 syn region clBreak oneline start="^\s*break" end="$" |
7 | 56 |
3830 | 57 syn match clOperator "[!;|)(:.><+*=-]" |
7 | 58 |
3830 | 59 syn match clNumber "\<\d\+\(u\=l\=\|lu\|f\)\>" |
7 | 60 |
3830 | 61 syn region clString matchgroup=clQuote start=+"+ end=+"+ skip=+\\"+ contains=@Spell |
62 syn region clString matchgroup=clQuote start=+'+ end=+'+ skip=+\\'+ contains=@Spell | |
7 | 63 |
3830 | 64 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 | 65 |
3830 | 66 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 | 67 |
3830 | 68 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 | 69 |
70 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4186
diff
changeset
|
71 " Only when an item doesn't have highlighting yet |
7 | 72 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link clifError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link clSpaceError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link clWhile Repeat |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
76 hi def link clConditional Conditional |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link clDebug Debug |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link clNeedsWork Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
79 hi def link clTodo Todo |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
80 hi def link clComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
81 hi def link clProcedure Procedure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link clBreak Procedure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
83 hi def link clInclude Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
84 hi def link clSetOption Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
85 hi def link clSet Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
86 hi def link clPreProc PreProc |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
87 hi def link clOperator Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
88 hi def link clNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
89 hi def link clString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
90 hi def link clQuote Delimiter |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
91 hi def link clReserved Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
92 hi def link clFunction Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
93 hi def link clStatement Statement |
7 | 94 |
95 | |
96 let b:current_syntax = "cl" | |
97 | |
3830 | 98 " vim: ts=8 sw=8 |