Mercurial > vim
annotate runtime/syntax/vroom.vim @ 17459:02dc4260ddbb
Added tag v8.1.1727 for changeset cfdef48743edfd9e4dcea017e6691202317e9f5c
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Jul 2019 19:30:07 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
6091
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 " Vim syntax file |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 " Language: Vroom (vim testing and executable documentation) |
6153 | 3 " Maintainer: David Barnett (https://github.com/google/vim-ft-vroom) |
6091
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
4 " Last Change: 2014 Jul 23 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6153
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6153
diff
changeset
|
7 if exists('b:current_syntax') |
6091
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 finish |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
9 endif |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
10 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
11 let s:cpo_save = &cpo |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 set cpo-=C |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 syn include @vroomVim syntax/vim.vim |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 syn include @vroomShell syntax/sh.vim |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
18 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
19 \ matchgroup=vroomOutput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
20 \ start='\m^ ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
21 \ contains=vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
22 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
23 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
24 \ matchgroup=vroomOutput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
25 \ start='\m^ & ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
26 \ contains=vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
27 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
28 syntax match vroomOutput '\m^ &$' |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
29 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
30 syntax region vroomMessageBody |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
31 \ matchgroup=vroomMessage |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
32 \ start='\m^ \~ ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
33 \ contains=vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
34 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
35 syntax region vroomColoredAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
36 \ matchgroup=vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
37 \ start='\m^ > ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
38 \ contains=vimNotation,vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
39 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
40 \ matchgroup=vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
41 \ start='\m^ % ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
42 \ contains=vimNotation,vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
43 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
44 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
45 \ matchgroup=vroomContinuation |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
46 \ start='\m^ |' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
47 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
48 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
49 \ start='\m^ \ze:' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
50 \ contains=@vroomVim,vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
51 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
52 syntax region vroomAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
53 \ matchgroup=vroomDirective |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
54 \ start='\m^ @\i\+' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
55 \ contains=vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
56 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
57 syntax region vroomSystemAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
58 \ matchgroup=vroomSystem |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
59 \ start='\m^ ! ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
60 \ contains=@vroomShell,vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
61 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
62 syntax region vroomHijackAction |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
63 \ matchgroup=vroomHijack |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
64 \ start='\m^ \$ ' end='\m$' keepend |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
65 \ contains=vroomControlBlock |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
66 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
67 syntax match vroomControlBlock contains=vroomControlEscape,@vroomControls |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
68 \ '\v \([^&()][^()]*\)$' |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
69 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
70 syntax match vroomControlEscape '\m&' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
71 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
72 syntax cluster vroomControls |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
73 \ contains=vroomDelay,vroomMode,vroomBuffer,vroomRange |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
74 \,vroomChannel,vroomBind,vroomStrictness |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
75 syntax match vroomRange '\v\.(,\+?(\d+|\$)?)?' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
76 syntax match vroomRange '\v\d*,\+?(\d+|\$)?' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
77 syntax match vroomBuffer '\v\d+,@!' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
78 syntax match vroomDelay '\v\d+(\.\d+)?s' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
79 syntax match vroomMode '\v<%(regex|glob|verbatim)' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
80 syntax match vroomChannel '\v<%(stderr|stdout|command|status)>' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
81 syntax match vroomBind '\v<bind>' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
82 syntax match vroomStrictness '\v\<%(STRICT|RELAXED|GUESS-ERRORS)\>' contained |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
83 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
84 highlight default link vroomInput Identifier |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
85 highlight default link vroomDirective vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
86 highlight default link vroomControlBlock vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
87 highlight default link vroomSystem vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
88 highlight default link vroomOutput Statement |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
89 highlight default link vroomContinuation Constant |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
90 highlight default link vroomHijack Special |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
91 highlight default link vroomColoredAction Statement |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
92 highlight default link vroomSystemAction vroomSystem |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
93 highlight default link vroomHijackAction vroomHijack |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
94 highlight default link vroomMessage vroomOutput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
95 highlight default link vroomMessageBody Constant |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
96 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
97 highlight default link vroomControlEscape Special |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
98 highlight default link vroomBuffer vroomInput |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
99 highlight default link vroomRange Include |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
100 highlight default link vroomMode Constant |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
101 highlight default link vroomDelay Type |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
102 highlight default link vroomStrictness vroomMode |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
103 highlight default link vroomChannel vroomMode |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
104 highlight default link vroomBind vroomMode |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
105 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
106 let b:current_syntax = 'vroom' |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
107 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
108 |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
109 let &cpo = s:cpo_save |
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
110 unlet s:cpo_save |