Mercurial > vim
comparison runtime/syntax/css.vim @ 3224:8b8ef1fed009
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Dec 2011 21:17:39 +0100 |
parents | c0e675a3e363 |
children | 04592728474a |
comparison
equal
deleted
inserted
replaced
3223:576648218cb5 | 3224:8b8ef1fed009 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Cascading Style Sheets | 2 " Language: Cascading Style Sheets |
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> | 3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> |
4 " URL: http://www.fleiner.com/vim/syntax/css.vim | 4 " URL: http://www.fleiner.com/vim/syntax/css.vim |
5 " Last Change: 2010 Jul 28 | 5 " Last Change: 2011 Dec 14 |
6 " CSS2 by Nikolai Weibull | 6 " CSS2 by Nikolai Weibull |
7 " Full CSS2, HTML4 support by Yeti | 7 " Full CSS2, HTML4 support by Yeti |
8 | 8 |
9 " For version 5.x: Clear all syntax items | 9 " For version 5.x: Clear all syntax items |
10 " For version 6.x: Quit when a syntax file was already loaded | 10 " For version 6.x: Quit when a syntax file was already loaded |
180 syn match cssBraces contained "[{}]" | 180 syn match cssBraces contained "[{}]" |
181 syn match cssError contained "{@<>" | 181 syn match cssError contained "{@<>" |
182 syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape | 182 syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape |
183 syn match cssBraceError "}" | 183 syn match cssBraceError "}" |
184 | 184 |
185 syn match cssPseudoClass ":\S*" contains=cssPseudoClassId,cssUnicodeEscape | 185 syn match cssPseudoClass ":[A-Za-z0-9_-]*" contains=cssPseudoClassId,cssUnicodeEscape |
186 syn keyword cssPseudoClassId contained link visited active hover focus before after left right | 186 syn keyword cssPseudoClassId contained link visited active hover focus before after left right |
187 syn match cssPseudoClassId contained "\<first\(-\(line\|letter\|child\)\)\=\>" | 187 syn match cssPseudoClassId contained "\<first\(-\(line\|letter\|child\)\)\=\>" |
188 syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":lang(" end=")" oneline | 188 syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":lang(" end=")" oneline |
189 | 189 |
190 syn region cssComment start="/\*" end="\*/" contains=@Spell | 190 syn region cssComment start="/\*" end="\*/" contains=@Spell |