annotate runtime/syntax/sass.vim @ 2287:573da4dac306 vim73

Make the dos installer work with more compilers.
author Bram Moolenaar <bram@vim.org>
date Wed, 07 Jul 2010 15:14:03 +0200
parents f7579a31705c
children 8f017e31750f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
1 " Vim syntax file
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
2 " Language: Sass
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
4 " Filenames: *.sass
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
5 " Last Change: 2010 May 21
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
6
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
8 finish
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
9 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
10
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
11 runtime! syntax/css.vim
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
12
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
13 syn case ignore
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
14
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
15 syn cluster sassCssProperties contains=cssFontProp,cssFontDescriptorProp,cssColorProp,cssTextProp,cssBoxProp,cssGeneratedContentProp,cssPagingProp,cssUIProp,cssRenderProp,cssAuralProp,cssTableProp
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
16 syn cluster sassCssAttributes contains=css.*Attr,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
17
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
18 syn match sassProperty "^\s*\zs\s\%([[:alnum:]-]\+:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
19 syn match sassProperty "^\s*\zs\s\%(:\=[[:alnum:]-]\+\s*=\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassScript
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
20 syn match sassCssAttribute ".*$" contained contains=@sassCssAttributes,sassConstant
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
21 syn match sassScript ".*$" contained contains=@sassCssAttributes,sassConstant
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
22 syn match sassConstant "![[:alnum:]_-]\+"
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
23 syn match sassConstantAssignment "\%(![[:alnum:]_]\+\s*\)\@<=\%(||\)\==" nextgroup=sassScript skipwhite
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
24 syn match sassMixin "^=.*"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
25 syn match sassMixing "^\s\+\zs+.*"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
26
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
27 syn match sassEscape "^\s*\zs\\"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
28 syn match sassIdChar "#[[:alnum:]_-]\@=" nextgroup=sassId
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
29 syn match sassId "[[:alnum:]_-]\+" contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
30 syn match sassClassChar "\.[[:alnum:]_-]\@=" nextgroup=sassClass
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
31 syn match sassClass "[[:alnum:]_-]\+" contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
32 syn match sassAmpersand "&"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
33
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
34 " TODO: Attribute namespaces
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
35 " TODO: Arithmetic (including strings and concatenation)
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
36
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
37 syn region sassInclude start="@import" end=";\|$" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
38 syn region sassDebugLine matchgroup=sassDebug start="@debug\>" end="$" contains=@sassCssAttributes,sassConstant
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
39 syn region sassControlLine matchgroup=sassControl start="@\%(if\|else\%(\s\+if\)\=\|while\|for\)\>" end="$" contains=sassFor,@sassCssAttributes,sassConstant
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
40 syn keyword sassFor from to through contained
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
41
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
42 syn keyword sassTodo FIXME NOTE TODO OPTIMIZE XXX contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
43 syn region sassComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!" contains=sassTodo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
44 syn region sassCssComment start="^\z(\s*\)/\*" end="^\%(\z1 \)\@!" contains=sassTodo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
45
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
46 hi def link sassCssComment sassComment
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
47 hi def link sassComment Comment
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
48 hi def link sassConstant Identifier
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
49 hi def link sassMixing PreProc
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
50 hi def link sassMixin PreProc
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
51 hi def link sassTodo Todo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
52 hi def link sassInclude Include
2202
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
53 hi def link sassDebug Debug
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
54 hi def link sassControl PreProc
f7579a31705c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
55 hi def link sassFor PreProc
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
56 hi def link sassEscape Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
57 hi def link sassIdChar Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
58 hi def link sassClassChar Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
59 hi def link sassAmpersand Character
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
60 hi def link sassId Identifier
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
61 hi def link sassClass Type
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
62
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
63 let b:current_syntax = "sass"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
64
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
65 " vim:set sw=2: