xiancode / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

CSS pseudo class syntax bug #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable syntax highlighting, set the filetype to CSS (open a CSS file).
2. Type in the following (note no space between the brace and the :hover):
a:hover{
  color:black;
}

What is the expected output? What do you see instead?
See before and after screenshots. CSS properties are not syntax highlighted and 
the '}' brace is highlighted as having a no-matching-bracket error.

What version of the product are you using? On what operating system?
Hg tip has the problem.

Please provide any additional information below.
The problem is the regex used to match pseudo-classes (PS) also matches the '{' 
character if there's no space between the PS and the '{'.

The attached patch corrects the regex to only match alphabet characters and 
hyphens.

Original issue reported on code.google.com by splond...@gmail.com on 29 May 2011 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
You should send this patch to the maintainer of the syntax file but not here, 
because the runtime files are maintained in a way different from vim:
Claudio Fleiner <claudio AT fleiner DOT com>

Original comment by xuhdev on 29 May 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Thanks, I contacted the maintainer a few years ago (and again yesterday) via 
two different emails. Thought I should put it here as well just in case.

Original comment by splond...@gmail.com on 30 May 2011 at 10:42

GoogleCodeExporter commented 9 years ago

Original comment by brammool...@gmail.com on 14 Dec 2011 at 6:00