corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 ace.define("ace/mode/ada_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
2 "use strict";
3  
4 var oop = require("../lib/oop");
5 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
6  
7 var AdaHighlightRules = function() {
8 var keywords = "abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|" +
9 "access|exception|of|separate|aliased|exit|or|some|all|others|subtype|and|for|out|synchronized|" +
10 "array|function|overriding|at|tagged|generic|package|task|begin|goto|pragma|terminate|" +
11 "body|private|then|if|procedure|type|case|in|protected|constant|interface|until|" +
12 "|is|raise|use|declare|range|delay|limited|record|when|delta|loop|rem|while|digits|renames|with|do|mod|requeue|xor";
13  
14 var builtinConstants = (
15 "true|false|null"
16 );
17  
18 var builtinFunctions = (
19 "count|min|max|avg|sum|rank|now|coalesce|main"
20 );
21  
22 var keywordMapper = this.createKeywordMapper({
23 "support.function": builtinFunctions,
24 "keyword": keywords,
25 "constant.language": builtinConstants
26 }, "identifier", true);
27  
28 this.$rules = {
29 "start" : [ {
30 token : "comment",
31 regex : "--.*$"
32 }, {
33 token : "string", // " string
34 regex : '".*?"'
35 }, {
36 token : "string", // ' string
37 regex : "'.*?'"
38 }, {
39 token : "constant.numeric", // float
40 regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
41 }, {
42 token : keywordMapper,
43 regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
44 }, {
45 token : "keyword.operator",
46 regex : "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="
47 }, {
48 token : "paren.lparen",
49 regex : "[\\(]"
50 }, {
51 token : "paren.rparen",
52 regex : "[\\)]"
53 }, {
54 token : "text",
55 regex : "\\s+"
56 } ]
57 };
58 };
59  
60 oop.inherits(AdaHighlightRules, TextHighlightRules);
61  
62 exports.AdaHighlightRules = AdaHighlightRules;
63 });
64  
65 ace.define("ace/mode/ada",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ada_highlight_rules"], function(require, exports, module) {
66 "use strict";
67  
68 var oop = require("../lib/oop");
69 var TextMode = require("./text").Mode;
70 var AdaHighlightRules = require("./ada_highlight_rules").AdaHighlightRules;
71  
72 var Mode = function() {
73 this.HighlightRules = AdaHighlightRules;
74 this.$behaviour = this.$defaultBehaviour;
75 };
76 oop.inherits(Mode, TextMode);
77  
78 (function() {
79  
80 this.lineCommentStart = "--";
81  
82 this.$id = "ace/mode/ada";
83 }).call(Mode.prototype);
84  
85 exports.Mode = Mode;
86  
87 });