annotate runtime/syntax/lout.vim @ 14240:f81ea4650b8f

Added tag v8.1.0136 for changeset 7457bf2db9689e2c2bb9510c39cf9802df73a09a
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Jul 2018 20:00:09 +0200
parents 46763b01cd9a
children 5b7ea82bc18f
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Lout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de>
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " Last Change: So 12 Feb 2012 15:15:03 CET
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.lout,*.lt
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
6 " URL: http://www.cvjb.de/comp/vim/lout.vim
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
8 " $Id: lout.vim,v 1.4 2012/02/12 15:16:17 bruessow Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Lout: Basser Lout document formatting system.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
12 " Many Thanks to...
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
13 "
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
14 " 2012-02-12:
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
15 " Thilo Six <T.Six at gmx dot de> send a patch for cpoptions.
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
16 " See the discussion at http://thread.gmane.org/gmane.editors.vim.devel/32151
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
17
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
18
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
19 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
20 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
24 let s:cpo_save=&cpo
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
25 set cpo&vim
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
26
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Lout is case sensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Synchronization, I know it is a huge number, but normal texts can be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " _very_ long ;-)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn sync lines=1000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Characters allowed in keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " I don't know if 128-255 are allowed in ANS-FORHT
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
36 setlocal iskeyword=@,48-57,.,@-@,_,192-255
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Some special keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword loutTodo contained TODO lout Lout LOUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword loutDefine def macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Some big structures
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword loutKeyword @Begin @End @Figure @Tab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword loutKeyword @Book @Doc @Document @Report
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword loutKeyword @Introduction @Abstract @Appendix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword loutKeyword @Chapter @Section @BeginSections @EndSections
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " All kind of Lout keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match loutFunction '\<@[^ \t{}]\+\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Braces -- Don`t edit these lines!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match loutMBraces '[{}]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match loutIBraces '[{}]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match loutBBrace '[{}]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match loutBIBraces '[{}]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match loutHeads '[{}]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Unmatched braces.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match loutBraceError '}'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " End of multi-line definitions, like @Document, @Report and @Book.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match loutEOmlDef '^//$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Grouping of parameters and objects.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn region loutObject transparent matchgroup=Delimiter start='{' matchgroup=Delimiter end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " The NULL object has a special meaning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword loutNULL {}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn region loutComment start='\#' end='$' contains=loutTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Double quotes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn region loutSpecial start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " ISO-LATIN-1 characters created with @Char, or Adobe symbols
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " created with @Sym
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match loutSymbols '@\(\(Char\)\|\(Sym\)\)\s\+[A-Za-z]\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " Include files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match loutInclude '@IncludeGraphic\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn region loutInclude start='@\(\(SysInclude\)\|\(IncludeGraphic\)\|\(Include\)\)\s*{' end='}'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " Tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match loutTag '@\(\(Tag\)\|\(PageMark\)\|\(PageOf\)\|\(NumberOf\)\)\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn region loutTag start='@Tag\s*{' end='}'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " Equations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match loutMath '@Eq\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn region loutMath matchgroup=loutMBraces start='@Eq\s*{' matchgroup=loutMBraces end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " Fonts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match loutItalic '@I\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn region loutItalic matchgroup=loutIBraces start='@I\s*{' matchgroup=loutIBraces end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn match loutBold '@B\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn region loutBold matchgroup=loutBBraces start='@B\s*{' matchgroup=loutBBraces end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn match loutBoldItalic '@BI\s\+\k\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn region loutBoldItalic matchgroup=loutBIBraces start='@BI\s*{' matchgroup=loutBIBraces end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn region loutHeadings matchgroup=loutHeads start='@\(\(Title\)\|\(Caption\)\)\s*{' matchgroup=loutHeads end='}' contains=ALLBUT,loutBraceError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
102 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
104 " The default methods for highlighting. Can be overrriden later.
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
105 hi def link loutTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
106 hi def link loutDefine Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
107 hi def link loutEOmlDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
108 hi def link loutFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
109 hi def link loutBraceError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
110 hi def link loutNULL Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
111 hi def link loutComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
112 hi def link loutSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
113 hi def link loutSymbols Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
114 hi def link loutInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
115 hi def link loutKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
116 hi def link loutTag Tag
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
117 hi def link loutMath Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
119 hi def link loutMBraces loutMath
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
120 hi loutItalic term=italic cterm=italic gui=italic
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
121 hi def link loutIBraces loutItalic
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
122 hi loutBold term=bold cterm=bold gui=bold
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
123 hi def link loutBBraces loutBold
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
124 hi loutBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
125 hi def link loutBIBraces loutBoldItalic
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3410
diff changeset
126 hi loutHeadings term=bold cterm=bold guifg=indianred
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
127 hi def link loutHeads loutHeadings
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 let b:current_syntax = "lout"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
132 let &cpo=s:cpo_save
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
133 unlet s:cpo_save
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
134
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " vim:ts=8:sw=4:nocindent:smartindent: