fix #1241 PHP highlighting of closing tag in comment

This commit is contained in:
nightwing 2013-02-11 18:58:04 +04:00
commit 6001ba815c
3 changed files with 25 additions and 20 deletions

View file

@ -208,7 +208,11 @@ var Tokenizer = function(rules) {
: rule.token;
if (rule.next) {
currentState = rule.next;
if (typeof rule.next == "string")
currentState = rule.next;
else
currentState = rule.next(currentState, stack);
state = this.states[currentState];
if (!state) {
window.console && console.error && console.error(currentState, "doesn't exist");