fix #1241 PHP highlighting of closing tag in comment
This commit is contained in:
parent
c83f48b371
commit
6001ba815c
3 changed files with 25 additions and 20 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue