annotate runtime/syntax/lss.vim @ 9:6a13985590e6

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