annotate runtime/syntax/sass.vim @ 2180:f60a0c9cbe6c vim73

Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
author Bram Moolenaar <bram@vim.org>
date Sun, 16 May 2010 22:32:54 +0200
parents 0b796e045c42
children f7579a31705c
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
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.info>
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
4 " Filenames: *.sass
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
5
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
7 finish
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
8 endif
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
9
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
10 runtime! syntax/css.vim
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
11
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
12 syn case ignore
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
13
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
14 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
15 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
16
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
17 syn match sassProperty "^\s*\zs\s\%([[:alnum:]-]\+:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=sassCssAttribute
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
18 syn match sassCssAttribute ".*$" contained contains=@sassCssAttributes,sassConstant
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
19 syn match sassConstant "![[:alnum:]_-]\+"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
20 syn match sassConstantAssignment "\%(![[:alnum:]_]\+\s*\)\@<==" nextgroup=sassCssAttribute skipwhite
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
21 syn match sassMixin "^=.*"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
22 syn match sassMixing "^\s\+\zs+.*"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
23
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
24 syn match sassEscape "^\s*\zs\\"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
25 syn match sassIdChar "#[[:alnum:]_-]\@=" nextgroup=sassId
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
26 syn match sassId "[[:alnum:]_-]\+" contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
27 syn match sassClassChar "\.[[:alnum:]_-]\@=" nextgroup=sassClass
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
28 syn match sassClass "[[:alnum:]_-]\+" contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
29 syn match sassAmpersand "&"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
30
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
31 " TODO: Attribute namespaces
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
32 " TODO: Arithmetic (including strings and concatenation)
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
33
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
34 syn region sassInclude start="@import" end=";\|$" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
35
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
36 syn keyword sassTodo FIXME NOTE TODO OPTIMIZE XXX contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
37 syn region sassComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!" contains=sassTodo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
38 syn region sassCssComment start="^\z(\s*\)/\*" end="^\%(\z1 \)\@!" contains=sassTodo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
39
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
40 hi def link sassCssComment sassComment
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
41 hi def link sassComment Comment
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
42 hi def link sassConstant Identifier
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
43 hi def link sassMixing PreProc
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
44 hi def link sassMixin PreProc
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
45 hi def link sassTodo Todo
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
46 hi def link sassInclude Include
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
47 hi def link sassEscape Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
48 hi def link sassIdChar Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
49 hi def link sassClassChar Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
50 hi def link sassAmpersand Character
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
51 hi def link sassId Identifier
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
52 hi def link sassClass Type
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
53
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
54 let b:current_syntax = "sass"
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
55
0b796e045c42 updated for version 7.2b-000
vimboss
parents:
diff changeset
56 " vim:set sw=2: