annotate runtime/syntax/lss.vim @ 677:e649c78407e6 v7.0202

updated for version 7.0202
author vimboss
date Mon, 20 Feb 2006 21:37:40 +0000
parents 404aac550f35
children 43efa4f5a8ea
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: Lynx 2.7.1 style file
26
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
3 " Maintainer: Scott Bigham <dsb@killerbunnies.org>
404aac550f35 updated for version 7.0017
vimboss
parents: 7
diff changeset
4 " Last Change: 2004 Oct 06
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " This setup is probably atypical for a syntax highlighting file, because
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " most of it is not really intended to be overrideable. Instead, the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " highlighting is supposed to correspond to the highlighting specified by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " the .lss file entries themselves; ie. the "bold" keyword should be bold,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " the "red" keyword should be red, and so forth. The exceptions to this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " are comments, of course, and the initial keyword identifying the affected
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " element, which will inherit the usual Identifier highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match lssElement "^[^:]\+" nextgroup=lssMono
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match lssMono ":[^:]\+" contained nextgroup=lssFgColor contains=lssReverse,lssUnderline,lssBold,lssStandout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword lssBold bold contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword lssReverse reverse contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword lssUnderline underline contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword lssStandout standout contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match lssFgColor ":[^:]\+" contained nextgroup=lssBgColor contains=lssRedFg,lssBlueFg,lssGreenFg,lssBrownFg,lssMagentaFg,lssCyanFg,lssLightgrayFg,lssGrayFg,lssBrightredFg,lssBrightgreenFg,lssYellowFg,lssBrightblueFg,lssBrightmagentaFg,lssBrightcyanFg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword lssRedFg red contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword lssBlueFg blue contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword lssGreenFg green contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword lssBrownFg brown contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword lssMagentaFg magenta contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword lssCyanFg cyan contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword lssLightgrayFg lightgray contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword lssGrayFg gray contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword lssBrightredFg brightred contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword lssBrightgreenFg brightgreen contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword lssYellowFg yellow contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword lssBrightblueFg brightblue contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword lssBrightmagentaFg brightmagenta contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword lssBrightcyanFg brightcyan contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match lssBgColor ":[^:]\+" contained contains=lssRedBg,lssBlueBg,lssGreenBg,lssBrownBg,lssMagentaBg,lssCyanBg,lssLightgrayBg,lssGrayBg,lssBrightredBg,lssBrightgreenBg,lssYellowBg,lssBrightblueBg,lssBrightmagentaBg,lssBrightcyanBg,lssWhiteBg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword lssRedBg red contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword lssBlueBg blue contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword lssGreenBg green contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword lssBrownBg brown contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword lssMagentaBg magenta contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword lssCyanBg cyan contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword lssLightgrayBg lightgray contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword lssGrayBg gray contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword lssBrightredBg brightred contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword lssBrightgreenBg brightgreen contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword lssYellowBg yellow contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword lssBrightblueBg brightblue contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword lssBrightmagentaBg brightmagenta contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword lssBrightcyanBg brightcyan contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword lssWhiteBg white contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match lssComment "#.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if version >= 508 || !exists("did_lss_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 let did_lss_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 hi def link lssComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 hi def link lssElement Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 hi def lssBold term=bold cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 hi def lssReverse term=reverse cterm=reverse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 hi def lssUnderline term=underline cterm=underline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 hi def lssStandout term=standout cterm=standout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 hi def lssRedFg ctermfg=red
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 hi def lssBlueFg ctermfg=blue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 hi def lssGreenFg ctermfg=green
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 hi def lssBrownFg ctermfg=brown
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 hi def lssMagentaFg ctermfg=magenta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 hi def lssCyanFg ctermfg=cyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 hi def lssGrayFg ctermfg=gray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 if $COLORTERM == "rxvt"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " On rxvt's, bright colors are activated by setting the bold attribute.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 hi def lssLightgrayFg ctermfg=gray cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 hi def lssBrightredFg ctermfg=red cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 hi def lssBrightgreenFg ctermfg=green cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 hi def lssYellowFg ctermfg=yellow cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 hi def lssBrightblueFg ctermfg=blue cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 hi def lssBrightmagentaFg ctermfg=magenta cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 hi def lssBrightcyanFg ctermfg=cyan cterm=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 hi def lssLightgrayFg ctermfg=lightgray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 hi def lssBrightredFg ctermfg=lightred
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 hi def lssBrightgreenFg ctermfg=lightgreen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 hi def lssYellowFg ctermfg=yellow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 hi def lssBrightblueFg ctermfg=lightblue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 hi def lssBrightmagentaFg ctermfg=lightmagenta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 hi def lssBrightcyanFg ctermfg=lightcyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 hi def lssRedBg ctermbg=red
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 hi def lssBlueBg ctermbg=blue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 hi def lssGreenBg ctermbg=green
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 hi def lssBrownBg ctermbg=brown
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 hi def lssMagentaBg ctermbg=magenta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 hi def lssCyanBg ctermbg=cyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 hi def lssLightgrayBg ctermbg=lightgray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 hi def lssGrayBg ctermbg=gray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 hi def lssBrightredBg ctermbg=lightred
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 hi def lssBrightgreenBg ctermbg=lightgreen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 hi def lssYellowBg ctermbg=yellow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 hi def lssBrightblueBg ctermbg=lightblue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 hi def lssBrightmagentaBg ctermbg=lightmagenta
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 hi def lssBrightcyanBg ctermbg=lightcyan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 hi def lssWhiteBg ctermbg=white ctermfg=black
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 let b:current_syntax = "lss"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " vim: ts=8