cakebaker / scss-syntax.vim

Vim syntax file for scss (Sassy CSS)
386 stars 71 forks source link

Inline functions with hyphens not properly highlighted #45

Closed alexwllms closed 10 years ago

alexwllms commented 10 years ago

I saw a similar, but fixed, issue in https://github.com/cakebaker/scss-syntax.vim/issues/31

However, I am having a problem where when I invoke a function (containing a hyphen) it does not properly highlight.

See baseline-unit() function below:

screen shot 2014-10-23 at 00 59 57

cakebaker commented 10 years ago

This is a known issue (see #32), and it is because the priority of keywords is higher than those of matches/regions (baseline is a CSS keyword whereas a function is a region).

You can fix it in your .vimrc by adding the hyphen to the keyword characters:

autocmd FileType scss set iskeyword+=-
alexwllms commented 10 years ago

Perfect. Thank you!