1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
Christian Nicolai
6192219d98 Fixed bug in js.jsf
This prevented correct hilite in situations like this:
    variable /* comment */

This was mislit as regex beginning t the second '/'.
2011-08-06 14:16:29 +02:00
Christian Nicolai
0ca5a95d56 after_term support for Javascript highlighter
This allows us to parse / / regex literals correctly in (nearly?) all
situations by recognizing if a literal is currently allowed or not (after terms!).

Now calc(a / b) works perfectly since 'a' is a term.
But match(/blub/) works too since after a ( everything is allowed.

Tested on JQuery 1.6.2 normal source ;-)
2011-08-06 12:32:37 +02:00
Christian Nicolai
c09253442f Improved js.jsf
Currently the regex has some serious problems - may fail in practice.
2011-08-06 00:39:04 +02:00
Christian Nicolai
a2c886e3fa Added revamped Javascript highlighter
This version is only for standalone .js files, not for <script> tag in HTML.
2011-08-05 23:45:04 +02:00