Workaround is to edit javascript.lang for example in Ubuntu 13.04:

/usr/share/gtksourceview-2.0/language-specs/javascript.lang

Comment out the "class" keyword in the "future-words" section:
    <context id="future-words" style-ref="future-words">
      <!-- <keyword>class</keyword> -->

This issue comes up when working with jQuery, for example:
$div = $('<div>', {class:'foo'});

Same problem also occurs in gtksourceview3

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1257406

Title:
  gedit highlighting class in js

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtksourceview2/+bug/1257406/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to