Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vertical-align not working #1

Closed
adrianpacala opened this issue Feb 19, 2011 · 6 comments
Closed

vertical-align not working #1

adrianpacala opened this issue Feb 19, 2011 · 6 comments
Labels

Comments

@adrianpacala
Copy link

Only highlights "vertical", without the "align" part.

@hail2u
Copy link
Owner

hail2u commented Feb 19, 2011

"vertical-align" is highlighted correctly

On my machine, "vertical-align" is highlighted correctly, and cannot reproduce this issue.

@danro
Copy link

danro commented Aug 15, 2011

I am also seeing some weirdness with vertical-align ... as well as font-size and box-shadow

screenshot

@webgefrickel
Copy link

Same here, having problems with MacVim 7.3.315 using jellybeans as colorscheme

  • box-shadow
  • vertical-align

It then somehow breaks the following syntax.

box-shadow-bug

@hail2u
Copy link
Owner

hail2u commented Nov 15, 2011

Finally I found a way to reproduce this issue.

This issue is based on highlighting priority between ":syntax keyword" and ":syntax match". Vim doesn't offer a way to overtake highlighting priority (I don't know). In other words, this issue cannot fix without building new css3 syntax file from scratch.


In ~/.vim/after/ftplugin/css.vim:

setlocal iskeyword+=-

will help to resolve this issue on some property. But other problem will happen.

@webgefrickel
Copy link

Mkay. I really would like to help you but I have (at least for now) no clue about vim-Syntax files. I used this enhanced syntax file for a while, but it drastically slowed down scrolling and typing in vim, so I tried yours...

@Phize
Copy link

Phize commented Jan 11, 2012

I had also encountered these issues.
RegExp patterns, which are simple ones for the light behavior, seem to cause strange matching with CSS keywords.
I've a little modified some patterns in syntax files like the following.

/vim-css3-syntax/after/syntax/css/css3-linebox.vim

syn match cssFontAttr contained ":\s*\<\(font\|text\|max\)-size\>"

This might also sometimes cause other wrong matching, but it's enough for me, for now.

@hail2u hail2u closed this as completed in b958f1b Mar 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants