Mercurial > vim
annotate runtime/syntax/sindaout.vim @ 20059:de756b3f4dee v8.2.0585
patch 8.2.0585: Vim9: # comment not recognized after :vim9script
Commit: https://github.com/vim/vim/commit/7a09224583b2ad0d9d0648b53cc2d989d45ae96e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 16 22:10:49 2020 +0200
patch 8.2.0585: Vim9: # comment not recognized after :vim9script
Problem: Vim9: # comment not recognized after :vim9script.
Solution: Check script type. Make comment after ":echo" work. And in
several other places.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Apr 2020 22:15:04 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: sinda85, sinda/fluint output file | |
3 " Maintainer: Adrian Nagle, anagle@ball.com | |
4 " Last Change: 2003 May 11 | |
5 " Filenames: *.out | |
6 " URL: http://www.naglenet.org/vim/syntax/sindaout.vim | |
7 " MAIN URL: http://www.naglenet.org/vim/ | |
8 | |
9 | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 | |
17 | |
18 " Ignore case | |
19 syn case match | |
20 | |
21 | |
22 | |
23 " Load SINDA syntax file | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
24 runtime! syntax/sinda.vim |
7 | 25 unlet b:current_syntax |
26 | |
27 | |
28 | |
29 " | |
30 " | |
31 " Begin syntax definitions for sinda output files. | |
32 " | |
33 | |
34 " Define keywords for sinda output | |
35 syn case match | |
36 | |
37 syn keyword sindaoutPos ON SI | |
38 syn keyword sindaoutNeg OFF ENG | |
39 | |
40 | |
41 | |
42 " Define matches for sinda output | |
43 syn match sindaoutFile ": \w*\.TAK"hs=s+2 | |
44 | |
45 syn match sindaoutInteger "T\=[0-9]*\>"ms=s+1 | |
46 | |
47 syn match sindaoutSectionDelim "[-<>]\{4,}" contains=sindaoutSectionTitle | |
48 syn match sindaoutSectionDelim ":\=\.\{4,}:\=" contains=sindaoutSectionTitle | |
49 syn match sindaoutSectionTitle "[-<:] \w[0-9A-Za-z_() ]\+ [->:]"hs=s+1,me=e-1 | |
50 | |
51 syn match sindaoutHeaderDelim "=\{5,}" | |
52 syn match sindaoutHeaderDelim "|\{5,}" | |
53 syn match sindaoutHeaderDelim "+\{5,}" | |
54 | |
55 syn match sindaoutLabel "Input File:" contains=sindaoutFile | |
56 syn match sindaoutLabel "Begin Solution: Routine" | |
57 | |
58 syn match sindaoutError "<<< Error >>>" | |
59 | |
60 | |
61 " Define the default highlighting | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
62 " Only when an item doesn't have highlighting yet |
7 | 63 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
64 hi sindaHeaderDelim ctermfg=Black ctermbg=Green guifg=Black guibg=Green |
7 | 65 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link sindaoutPos Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link sindaoutNeg PreProc |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link sindaoutTitle Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link sindaoutFile sindaIncludeFile |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link sindaoutInteger sindaInteger |
7 | 71 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
72 hi def link sindaoutSectionDelim Delimiter |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link sindaoutSectionTitle Exception |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link sindaoutHeaderDelim SpecialComment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link sindaoutLabel Identifier |
7 | 76 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link sindaoutError Error |
7 | 78 |
79 | |
80 | |
81 let b:current_syntax = "sindaout" | |
82 | |
83 " vim: ts=8 sw=2 |