Public bug reported:
Binary package hint: gedit
While editing Javascript in gedit, I find that I will sometimes have an
asterisk at the end of a regular expression. In Javascript, regular
expressions are begun and ended with a / (forward slash) instead of
quotes. However, gedit identifies any regular expressions with an
asterisk as the last letter as the incorrect end of a comment (*/) and
highlights the two characters red.
For example, if I have the regular expression:
/\d*/
gedit will highlight the asterisk and forward slash red as if it were an
end-comment marker.
** Affects: gedit (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Binary package hint: gedit
While editing Javascript in gedit, I find that I will sometimes have an
asterisk at the end of a regular expression. In Javascript, regular
expressions are begun and ended with a / (forward slash) instead of
quotes. However, gedit identifies any regular expressions with an
asterisk as the last letter as the incorrect end of a comment (*/) and
highlights the two characters red.
For example, if I have the regular expression:
/\d*/
- gedit will highlight the asterisk and forward slash red.
+ gedit will highlight the asterisk and forward slash red as if it were an
+ end-comment marker.
--
(Javascript syntax highlighter) */ characters incorrectly read when inside a
regular expression
https://bugs.launchpad.net/bugs/465721
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs