Commit Graph

5 Commits

Author SHA1 Message Date
cn f17483d34f Move <script> Javascript highlighting from java.java(script) to js.js(html) 2012-05-13 01:05:48 +02:00
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