tweak require lines for absolute paths to simplify startup

This commit is contained in:
Joe Walker 2011-01-12 01:14:40 +00:00
commit e6faa6ab06
3 changed files with 20 additions and 20 deletions

View file

@ -34,15 +34,15 @@
* the terms of any one of the MPL, the GPL or the LGPL. * the terms of any one of the MPL, the GPL or the LGPL.
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
define(function(require, exports, module) { define(function(require, exports, module) {
var oop = require("pilot/oop"); var oop = require("pilot/oop");
var TextMode = require("./text").Mode; var TextMode = require("ace/mode/text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer; var Tokenizer = require("ace/tokenizer").Tokenizer;
var PhpHighlightRules = require("./php_highlight_rules").PhpHighlightRules; var PhpHighlightRules = require("ace/mode/php_highlight_rules").PhpHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent; var MatchingBraceOutdent = require("ace/mode/matching_brace_outdent").MatchingBraceOutdent;
var Range = require("../range").Range; var Range = require("ace/range").Range;
var Mode = function() { var Mode = function() {
this.$tokenizer = new Tokenizer(new PhpHighlightRules().getRules()); this.$tokenizer = new Tokenizer(new PhpHighlightRules().getRules());

View file

@ -34,15 +34,15 @@
* the terms of any one of the MPL, the GPL or the LGPL. * the terms of any one of the MPL, the GPL or the LGPL.
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
define(function(require, exports, module) { define(function(require, exports, module) {
var oop = require("pilot/oop"); var oop = require("pilot/oop");
var TextMode = require("./text").Mode; var TextMode = require("ace/mode/text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer; var Tokenizer = require("ace/tokenizer").Tokenizer;
var PythonHighlightRules = require("./python_highlight_rules").PythonHighlightRules; var PythonHighlightRules = require("ace/mode/python_highlight_rules").PythonHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent; var MatchingBraceOutdent = require("ace/mode/matching_brace_outdent").MatchingBraceOutdent;
var Range = require("../range").Range; var Range = require("ace/range").Range;
var Mode = function() { var Mode = function() {
this.$tokenizer = new Tokenizer(new PythonHighlightRules().getRules()); this.$tokenizer = new Tokenizer(new PythonHighlightRules().getRules());

View file

@ -33,7 +33,7 @@
* the provisions above, a recipient may use your version of this file under * the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL. * the terms of any one of the MPL, the GPL or the LGPL.
* *
* ***** END LICENSE BLOCK ***** * ***** END LICENSE BLOCK *****
* *
* TODO: python delimiters * TODO: python delimiters
*/ */
@ -42,7 +42,7 @@ define(function(require, exports, module) {
var oop = require("pilot/oop"); var oop = require("pilot/oop");
var lang = require("pilot/lang"); var lang = require("pilot/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightRules;
PythonHighlightRules = function() { PythonHighlightRules = function() {
@ -50,12 +50,12 @@ PythonHighlightRules = function() {
("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" + ("and|as|assert|break|class|continue|def|del|elif|else|except|exec|" +
"finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" + "finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|" +
"raise|return|try|while|with|yield").split("|") "raise|return|try|while|with|yield").split("|")
); );
var builtinConstants = lang.arrayToMap( var builtinConstants = lang.arrayToMap(
("True|False|None|NotImplemented|Ellipsis|__debug__").split("|") ("True|False|None|NotImplemented|Ellipsis|__debug__").split("|")
); );
var builtinFunctions = lang.arrayToMap( var builtinFunctions = lang.arrayToMap(
("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" + ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
"eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" + "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +
@ -66,19 +66,19 @@ PythonHighlightRules = function() {
"__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" + "__import__|complex|hash|min|set|apply|delattr|help|next|setattr|" +
"buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern").split("|") "buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern").split("|")
); );
var futureReserved = lang.arrayToMap( var futureReserved = lang.arrayToMap(
("").split("|") ("").split("|")
); );
var strPre = "(?:(?:[rubRUB])|(?:[ubUB][rR]))?"; var strPre = "(?:(?:[rubRUB])|(?:[ubUB][rR]))?";
var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))"; var decimalInteger = "(?:(?:[1-9]\\d*)|(?:0))";
var octInteger = "(?:0[oO]?[0-7]+)"; var octInteger = "(?:0[oO]?[0-7]+)";
var hexInteger = "(?:0[xX][\\dA-Fa-f]+)"; var hexInteger = "(?:0[xX][\\dA-Fa-f]+)";
var binInteger = "(?:0[bB][01]+)"; var binInteger = "(?:0[bB][01]+)";
var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")"; var integer = "(?:" + decimalInteger + "|" + octInteger + "|" + hexInteger + "|" + binInteger + ")";
var exponent = "(?:[eE][+-]?\\d+)"; var exponent = "(?:[eE][+-]?\\d+)";
var fraction = "(?:\\.\\d+)"; var fraction = "(?:\\.\\d+)";
var intPart = "(?:\\d+)"; var intPart = "(?:\\d+)";