Added c-style behavior and fold mode / updated mode syntax.
As per Harutyun Amirjanyan's request I made the following two changes: 1) Added c-style behavior and fold mode. 2) Updated mode syntax for mel to current one used by Ace.
This commit is contained in:
parent
56604c1fa5
commit
cde625fde3
1 changed files with 5 additions and 2 deletions
|
|
@ -35,10 +35,13 @@ var oop = require("../lib/oop");
|
|||
var TextMode = require("./text").Mode;
|
||||
var Tokenizer = require("../tokenizer").Tokenizer;
|
||||
var MELHighlightRules = require("./mel_highlight_rules").MELHighlightRules;
|
||||
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
||||
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
var highlighter = new MELHighlightRules();
|
||||
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
||||
this.HighlightRules = MELHighlightRules;
|
||||
this.$behaviour = new CstyleBehaviour();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue