javascript-libraries-syntax.vim icon indicating copy to clipboard operation
javascript-libraries-syntax.vim copied to clipboard

No syntas highlights for jQuery functions.

Open lookforit opened this issue 10 years ago • 3 comments

Hi, I install this plugin with Vundle,everything seems OK.

Then I open a simple .js file,(I know jQuery is enabled by default.)just input:

jQuery("#id").ready(function(){

        });

Anyhow,the word ready is displayed as plain text ,rather than function color.

So , did I use it in the wrong way ?

Ps: Is this plugin conflict with othree/javascript-libraries-syntax.vim'?

Thanks.

lookforit avatar Nov 23 '15 07:11 lookforit

I think you miss typed the library name you talk about in last line.

othree avatar Jan 19 '16 02:01 othree

As for the author problem - it's probably your colorscheme that's lacking some coloring - try Gotham or Solarized and check if it's still happening - it works for me on both of them.

However, othree, the selectors starting with colon (:) doesn't change color and use string default one: colon-highlight You can see this in image above - 1st line - :contains and later :lt and :gt. And it doesn't work for every one that starts with colon. Maybe it's my colorscheme but apart from this ones everything else works fine. I assume that's because all of these selectors needs to be inside string 'markers' so it defaults into string coloring and there's not much that can be done?

Tested on Gotham and Solarized

haRacz avatar Jan 27 '16 12:01 haRacz

@haRacz I think its not very well to affect all strings (old implementation). And I have a plan to fix it. I just turn it off recently.

othree avatar Jan 29 '16 08:01 othree