add a gitignore mode
This commit is contained in:
parent
c3bb709318
commit
bf72097811
4 changed files with 56 additions and 0 deletions
19
lib/ace/mode/gitignore.js
Normal file
19
lib/ace/mode/gitignore.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
define(function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var GitignoreHighlightRules = require("./gitignore_highlight_rules").GitignoreHighlightRules;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = GitignoreHighlightRules;
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
this.$id = "ace/mode/gitignore";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue