Created
June 1, 2015 07:40
-
-
Save gnysek/6c95ff82726adcaecb0d to your computer and use it in GitHub Desktop.
ACE js bbcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function(require, exports, module) { | |
"use strict"; | |
var oop = require("../lib/oop"); | |
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; | |
var MyNewHighlightRules = function() { | |
this.$rules = { | |
"start" : [ | |
{ | |
token: 'constant.numeric', | |
regex: '(\\[|\\[/)([a-z0-9=]*|\\*)(\\])' | |
//next: "end" | |
} | |
], | |
}; | |
}; | |
oop.inherits(MyNewHighlightRules, TextHighlightRules); | |
exports.MyNewHighlightRules = MyNewHighlightRules; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment