Mercurial > vim
annotate runtime/syntax/hastepreproc.vim @ 13808:16a062cf08c2 v8.0.1776
patch 8.0.1776: in tests, when WaitFor() fails it doesn't say why
commit https://github.com/vim/vim/commit/0e9d1ae3216a5940b36bb56d155fb300b2e55b00
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 30 14:28:24 2018 +0200
patch 8.0.1776: in tests, when WaitFor() fails it doesn't say why
Problem: In tests, when WaitFor() fails it doesn't say why.
Solution: Turn a few more WaitFor() into WaitForAssert().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 30 Apr 2018 14:30:07 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
1668 | 1 " Vim syntax file |
2 " Language: Haste preprocessor files | |
3 " Maintainer: M. Tranchero - maurizio.tranchero@gmail.com | |
4 " Credits: some parts have been taken from vhdl, verilog, and C syntax | |
5 " files | |
6 " Version: 0.5 | |
7 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1668
diff
changeset
|
8 " quit when a syntax file was already loaded |
1668 | 9 if exists("b:current_syntax") |
10 finish | |
11 endif | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1668
diff
changeset
|
12 " Read the haste syntax to start with |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1668
diff
changeset
|
13 runtime! syntax/haste.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1668
diff
changeset
|
14 unlet b:current_syntax |
1668 | 15 |
16 " case is significant | |
17 syn case match | |
18 | |
19 " C pre-processor directives | |
20 syn match hastepreprocVar display "\$[[:alnum:]_]*" | |
21 syn region hastepreprocVar start="\${" end="}" contains=hastepreprocVar | |
22 " | |
23 "syn region hastepreproc start="#\[\s*tg[:alnum:]*" end="]#" contains=hastepreprocVar,hastepreproc,hastepreprocError,@Spell | |
24 syn region hastepreproc start="#\[\s*\(\|tgfor\|tgif\)" end="$" contains=hastepreprocVar,hastepreproc,@Spell | |
25 syn region hastepreproc start="}\s\(else\)\s{" end="$" contains=hastepreprocVar,hastepreproc,@Spell | |
26 syn region hastepreproc start="^\s*#\s*\(ifndef\|ifdef\|else\|endif\)\>" end="$" contains=@hastepreprocGroup,@Spell | |
27 syn region hastepreproc start="\s*##\s*\(define\|undef\)\>" end="$" contains=@hastepreprocGroup,@Spell | |
28 syn match hastepreproc "}\{0,1}\s*]#" | |
29 | |
30 " Define the default highlighting. | |
31 " Only when an item doesn't have highlighting yet | |
32 hi def link hastepreproc Preproc | |
33 hi def link hastepreprocVar Special | |
34 hi def link hastepreprocError Error | |
35 | |
36 let b:current_syntax = "hastepreproc" | |
37 | |
38 " vim: ts=8 |