Patch: css.vim: fix too aggressive cssPseudoClass match

3 views
Skip to first unread message

Kevin Liu

unread,
Jun 16, 2008, 4:34:57 AM6/16/08
to vim...@vim.org
The current syn match for cssPseudoClass ":\S*" would eat away tokens after it, such as the comma "," after a:link and the curly bracelet "{" after a:visited in:
.selected_section_title a:link,.selected_section_title a:visited{ ...

The simple patch to syntax/css.vim attached should fix the above issue.

185c185
< syn match cssPseudoClass ":\S*" contains=cssPseudoClassId,cssUnicodeEscape
---
> syn match cssPseudoClass ":[^\s,{]\+" contains=cssPseudoClassId,cssUnicodeEscape



--
Kevin Tsung-Yuan Liu
Google Taipei Software Engineer (GMT+8)
css.vim.patch
Reply all
Reply to author
Forward
0 new messages