create tokenizer only when needed
This commit is contained in:
parent
bc4b1324b7
commit
811d190c95
95 changed files with 122 additions and 281 deletions
|
|
@ -46,7 +46,7 @@ var unicode = require("../unicode");
|
|||
var Mode = function(opts) {
|
||||
var inline = opts && opts.inline;
|
||||
var HighlightRules = inline ? PhpLangHighlightRules : PhpHighlightRules;
|
||||
this.$tokenizer = new Tokenizer(new HighlightRules().getRules());
|
||||
this.HighlightRules = HighlightRules;
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.$behaviour = new CstyleBehaviour();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue