rename regexp module to unicode
This commit is contained in:
parent
b837cd547b
commit
8e0e55fe64
3 changed files with 121 additions and 15 deletions
|
|
@ -40,7 +40,7 @@ define(function(require, exports, module) {
|
|||
|
||||
var oop = require("pilot/oop");
|
||||
var lang = require("pilot/lang");
|
||||
var regexp = require("ace/regexp");
|
||||
var unicode = require("ace/unicode");
|
||||
var DocCommentHighlightRules = require("ace/mode/doc_comment_highlight_rules").DocCommentHighlightRules;
|
||||
var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightRules;
|
||||
|
||||
|
|
@ -62,11 +62,11 @@ var JavaScriptHighlightRules = function() {
|
|||
);
|
||||
|
||||
// TODO: Unicode escape sequences
|
||||
var identifierRe = "[" + regexp.unicode.L + "\\$_]["
|
||||
+ regexp.unicode.L
|
||||
+ regexp.unicode.Mn + regexp.unicode.Mc
|
||||
+ regexp.unicode.Nd
|
||||
+ regexp.unicode.Pc + "\\$_]*\\b";
|
||||
var identifierRe = "[" + unicode.packages.L + "\\$_]["
|
||||
+ unicode.packages.L
|
||||
+ unicode.packages.Mn + unicode.packages.Mc
|
||||
+ unicode.packages.Nd
|
||||
+ unicode.packages.Pc + "\\$_]*\\b";
|
||||
|
||||
// regexp must not have capturing parentheses. Use (?:) instead.
|
||||
// regexps are ordered -> the first match is used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue