corrade-nucleus-nucleons – Blame information for rev 20
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | define("ace/mode/bro_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 BroHighlightRules = function() { |
||
8 | |||
9 | this.$rules = { |
||
10 | start: [{ |
||
11 | token: "punctuation.definition.comment.bro", |
||
12 | regex: /#/, |
||
13 | push: [{ |
||
14 | token: "comment.line.number-sign.bro", |
||
15 | regex: /$/, |
||
16 | next: "pop" |
||
17 | }, { |
||
18 | defaultToken: "comment.line.number-sign.bro" |
||
19 | }] |
||
20 | }, { |
||
21 | token: "keyword.control.bro", |
||
22 | regex: /\b(?:break|case|continue|else|for|if|return|switch|next|when|timeout|schedule)\b/ |
||
23 | }, { |
||
24 | token: [ |
||
25 | "meta.function.bro", |
||
26 | "meta.function.bro", |
||
27 | "storage.type.bro", |
||
28 | "meta.function.bro", |
||
29 | "entity.name.function.bro", |
||
30 | "meta.function.bro" |
||
31 | ], |
||
32 | regex: /^(\s*)(?:function|hook|event)(\s*)(.*)(\s*\()(.*)(\).*$)/ |
||
33 | }, { |
||
34 | token: "storage.type.bro", |
||
35 | regex: /\b(?:bool|enum|double|int|count|port|addr|subnet|any|file|interval|time|string|table|vector|set|record|pattern|hook)\b/ |
||
36 | }, { |
||
37 | token: "storage.modifier.bro", |
||
38 | regex: /\b(?:global|const|redef|local|&(?:optional|rotate_interval|rotate_size|add_func|del_func|expire_func|expire_create|expire_read|expire_write|persistent|synchronized|encrypt|mergeable|priority|group|type_column|log|error_handler))\b/ |
||
39 | }, { |
||
40 | token: "keyword.operator.bro", |
||
41 | regex: /\s*(?:\||&&|(?:>|<|!)=?|==)\s*|\b!?in\b/|!)=?|==)\s*|\b!?in\b/ |
||
42 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
43 | <|!)=?|==)\s*|\b!?in\b/ token: "constant.language.bro",|!)=?|==)\s*|\b!?in\b/ |
||
44 | <|!)=?|==)\s*|\b!?in\b/ regex: /\b(?:T|F)\b/|!)=?|==)\s*|\b!?in\b/ |
||
45 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
46 | <|!)=?|==)\s*|\b!?in\b/ token: "constant.numeric.bro",|!)=?|==)\s*|\b!?in\b/ |
||
47 | <|!)=?|==)\s*|\b!?in\b/ regex: /\b(?:0(?:x|X)[0-9a-fA-F]*|(?:[0-9]+\.?[0-9]*|\.[0-9]+)(?:(?:e|E)(?:\+|-)?[0-9]+)?)(?:\/(?:tcp|udp|icmp)|\s*(?:u?sec|min|hr|day)s?)?\b/|!)=?|==)\s*|\b!?in\b/ |
||
48 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
49 | <|!)=?|==)\s*|\b!?in\b/ token: "punctuation.definition.string.begin.bro",|!)=?|==)\s*|\b!?in\b/ |
||
50 | <|!)=?|==)\s*|\b!?in\b/ regex: /"/,|!)=?|==)\s*|\b!?in\b/ |
||
51 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
52 | <|!)=?|==)\s*|\b!?in\b/ token: "punctuation.definition.string.end.bro",|!)=?|==)\s*|\b!?in\b/ |
||
53 | <|!)=?|==)\s*|\b!?in\b/ regex: /"/,|!)=?|==)\s*|\b!?in\b/ |
||
54 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
55 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
56 | <|!)=?|==)\s*|\b!?in\b/ include: "#string_escaped_char"|!)=?|==)\s*|\b!?in\b/ |
||
57 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
58 | <|!)=?|==)\s*|\b!?in\b/ include: "#string_placeholder"|!)=?|==)\s*|\b!?in\b/ |
||
59 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
60 | <|!)=?|==)\s*|\b!?in\b/ defaultToken: "string.quoted.double.bro"|!)=?|==)\s*|\b!?in\b/ |
||
61 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
62 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
63 | <|!)=?|==)\s*|\b!?in\b/ token: "punctuation.definition.string.begin.bro",|!)=?|==)\s*|\b!?in\b/ |
||
64 | <|!)=?|==)\s*|\b!?in\b/ regex: /\//,|!)=?|==)\s*|\b!?in\b/ |
||
65 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
66 | <|!)=?|==)\s*|\b!?in\b/ token: "punctuation.definition.string.end.bro",|!)=?|==)\s*|\b!?in\b/ |
||
67 | <|!)=?|==)\s*|\b!?in\b/ regex: /\//,|!)=?|==)\s*|\b!?in\b/ |
||
68 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
69 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
70 | <|!)=?|==)\s*|\b!?in\b/ include: "#string_escaped_char"|!)=?|==)\s*|\b!?in\b/ |
||
71 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
72 | <|!)=?|==)\s*|\b!?in\b/ include: "#string_placeholder"|!)=?|==)\s*|\b!?in\b/ |
||
73 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
74 | <|!)=?|==)\s*|\b!?in\b/ defaultToken: "string.quoted.regex.bro"|!)=?|==)\s*|\b!?in\b/ |
||
75 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
76 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
77 | <|!)=?|==)\s*|\b!?in\b/ token: [|!)=?|==)\s*|\b!?in\b/ |
||
78 | <|!)=?|==)\s*|\b!?in\b/ "meta.preprocessor.bro.load",|!)=?|==)\s*|\b!?in\b/ |
||
79 | <|!)=?|==)\s*|\b!?in\b/ "keyword.other.special-method.bro"|!)=?|==)\s*|\b!?in\b/ |
||
80 | <|!)=?|==)\s*|\b!?in\b/ ],|!)=?|==)\s*|\b!?in\b/ |
||
81 | <|!)=?|==)\s*|\b!?in\b/ regex: /^(\s*)(\@load(?:-sigs)?)\b/,|!)=?|==)\s*|\b!?in\b/ |
||
82 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
83 | <|!)=?|==)\s*|\b!?in\b/ token: [],|!)=?|==)\s*|\b!?in\b/ |
||
84 | <|!)=?|==)\s*|\b!?in\b/ regex: /(?=\#)|$/,|!)=?|==)\s*|\b!?in\b/ |
||
85 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
86 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
87 | <|!)=?|==)\s*|\b!?in\b/ defaultToken: "meta.preprocessor.bro.load"|!)=?|==)\s*|\b!?in\b/ |
||
88 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
89 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
90 | <|!)=?|==)\s*|\b!?in\b/ token: [|!)=?|==)\s*|\b!?in\b/ |
||
91 | <|!)=?|==)\s*|\b!?in\b/ "meta.preprocessor.bro.if",|!)=?|==)\s*|\b!?in\b/ |
||
92 | <|!)=?|==)\s*|\b!?in\b/ "keyword.other.special-method.bro",|!)=?|==)\s*|\b!?in\b/ |
||
93 | <|!)=?|==)\s*|\b!?in\b/ "meta.preprocessor.bro.if"|!)=?|==)\s*|\b!?in\b/ |
||
94 | <|!)=?|==)\s*|\b!?in\b/ ],|!)=?|==)\s*|\b!?in\b/ |
||
95 | <|!)=?|==)\s*|\b!?in\b/ regex: /^(\s*)(\@endif|\@if(?:n?def)?)(.*$)/,|!)=?|==)\s*|\b!?in\b/ |
||
96 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
97 | <|!)=?|==)\s*|\b!?in\b/ token: [],|!)=?|==)\s*|\b!?in\b/ |
||
98 | <|!)=?|==)\s*|\b!?in\b/ regex: /$/,|!)=?|==)\s*|\b!?in\b/ |
||
99 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
100 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
101 | <|!)=?|==)\s*|\b!?in\b/ defaultToken: "meta.preprocessor.bro.if"|!)=?|==)\s*|\b!?in\b/ |
||
102 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
103 | <|!)=?|==)\s*|\b!?in\b/ }],|!)=?|==)\s*|\b!?in\b/ |
||
104 | <|!)=?|==)\s*|\b!?in\b/ "#disabled": [{|!)=?|==)\s*|\b!?in\b/ |
||
105 | <|!)=?|==)\s*|\b!?in\b/ token: "text",|!)=?|==)\s*|\b!?in\b/ |
||
106 | <|!)=?|==)\s*|\b!?in\b/ regex: /^\s*\@if(?:n?def)?\b.*$/,|!)=?|==)\s*|\b!?in\b/ |
||
107 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
108 | <|!)=?|==)\s*|\b!?in\b/ token: "text",|!)=?|==)\s*|\b!?in\b/ |
||
109 | <|!)=?|==)\s*|\b!?in\b/ regex: /^\s*\@endif\b.*$/,|!)=?|==)\s*|\b!?in\b/ |
||
110 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
111 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
112 | <|!)=?|==)\s*|\b!?in\b/ include: "#disabled"|!)=?|==)\s*|\b!?in\b/ |
||
113 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
114 | <|!)=?|==)\s*|\b!?in\b/ include: "#pragma-mark"|!)=?|==)\s*|\b!?in\b/ |
||
115 | <|!)=?|==)\s*|\b!?in\b/ }],|!)=?|==)\s*|\b!?in\b/ |
||
116 | <|!)=?|==)\s*|\b!?in\b/ comment: "eat nested preprocessor ifdefs"|!)=?|==)\s*|\b!?in\b/ |
||
117 | <|!)=?|==)\s*|\b!?in\b/ }],|!)=?|==)\s*|\b!?in\b/ |
||
118 | <|!)=?|==)\s*|\b!?in\b/ "#preprocessor-rule-other": [{|!)=?|==)\s*|\b!?in\b/ |
||
119 | <|!)=?|==)\s*|\b!?in\b/ token: [|!)=?|==)\s*|\b!?in\b/ |
||
120 | <|!)=?|==)\s*|\b!?in\b/ "text",|!)=?|==)\s*|\b!?in\b/ |
||
121 | <|!)=?|==)\s*|\b!?in\b/ "meta.preprocessor.bro",|!)=?|==)\s*|\b!?in\b/ |
||
122 | <|!)=?|==)\s*|\b!?in\b/ "meta.preprocessor.bro",|!)=?|==)\s*|\b!?in\b/ |
||
123 | <|!)=?|==)\s*|\b!?in\b/ "text"|!)=?|==)\s*|\b!?in\b/ |
||
124 | <|!)=?|==)\s*|\b!?in\b/ ],|!)=?|==)\s*|\b!?in\b/ |
||
125 | <|!)=?|==)\s*|\b!?in\b/ regex: /^(\s*)(@if)((?:n?def)?)\b(.*?)(?:(?=)|$)/,|!)=?|==)\s*|\b!?in\b/ |
||
126 | <|!)=?|==)\s*|\b!?in\b/ push: [{|!)=?|==)\s*|\b!?in\b/ |
||
127 | <|!)=?|==)\s*|\b!?in\b/ token: ["text", "meta.preprocessor.bro", "text"],|!)=?|==)\s*|\b!?in\b/ |
||
128 | <|!)=?|==)\s*|\b!?in\b/ regex: /^(\s*)(@endif)\b(.*$)/,|!)=?|==)\s*|\b!?in\b/ |
||
129 | <|!)=?|==)\s*|\b!?in\b/ next: "pop"|!)=?|==)\s*|\b!?in\b/ |
||
130 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
131 | <|!)=?|==)\s*|\b!?in\b/ include: "$base"|!)=?|==)\s*|\b!?in\b/ |
||
132 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
133 | <|!)=?|==)\s*|\b!?in\b/ }],|!)=?|==)\s*|\b!?in\b/ |
||
134 | <|!)=?|==)\s*|\b!?in\b/ "#string_escaped_char": [{|!)=?|==)\s*|\b!?in\b/ |
||
135 | <|!)=?|==)\s*|\b!?in\b/ token: "constant.character.escape.bro",|!)=?|==)\s*|\b!?in\b/ |
||
136 | <|!)=?|==)\s*|\b!?in\b/ regex: /\\(?:\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2})/|!)=?|==)\s*|\b!?in\b/ |
||
137 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
138 | <|!)=?|==)\s*|\b!?in\b/ token: "invalid.illegal.unknown-escape.bro",|!)=?|==)\s*|\b!?in\b/ |
||
139 | <|!)=?|==)\s*|\b!?in\b/ regex: /\\./|!)=?|==)\s*|\b!?in\b/ |
||
140 | <|!)=?|==)\s*|\b!?in\b/ }],|!)=?|==)\s*|\b!?in\b/ |
||
141 | <|!)=?|==)\s*|\b!?in\b/ "#string_placeholder": [{|!)=?|==)\s*|\b!?in\b/ |
||
142 | <|!)=?|==)\s*|\b!?in\b/ token: "constant.other.placeholder.bro",|!)=?|==)\s*|\b!?in\b/ |
||
143 | <|!)=?|==)\s*|\b!?in\b/ regex: /%(?:\d+\$)?[#0\- +']*[,;:_]?(?:-?\d+|\*(?:-?\d+\$)?)?(?:\.(?:-?\d+|\*(?:-?\d+\$)?)?)?(?:hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)?[diouxXDOUeEfFgGaACcSspn%]/|!)=?|==)\s*|\b!?in\b/ |
||
144 | <|!)=?|==)\s*|\b!?in\b/ }, {|!)=?|==)\s*|\b!?in\b/ |
||
145 | <|!)=?|==)\s*|\b!?in\b/ token: "invalid.illegal.placeholder.bro",|!)=?|==)\s*|\b!?in\b/ |
||
146 | <|!)=?|==)\s*|\b!?in\b/ regex: /%/|!)=?|==)\s*|\b!?in\b/ |
||
147 | <|!)=?|==)\s*|\b!?in\b/ }]|!)=?|==)\s*|\b!?in\b/ |
||
148 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
149 | |||
150 | <|!)=?|==)\s*|\b!?in\b/ this.normalizeRules();|!)=?|==)\s*|\b!?in\b/ |
||
151 | <|!)=?|==)\s*|\b!?in\b/};|!)=?|==)\s*|\b!?in\b/ |
||
152 | |||
153 | <|!)=?|==)\s*|\b!?in\b/BroHighlightRules.metaData = {|!)=?|==)\s*|\b!?in\b/ |
||
154 | <|!)=?|==)\s*|\b!?in\b/ fileTypes: ["bro"],|!)=?|==)\s*|\b!?in\b/ |
||
155 | <|!)=?|==)\s*|\b!?in\b/ foldingStartMarker: "^(\\@if(n?def)?)",|!)=?|==)\s*|\b!?in\b/ |
||
156 | <|!)=?|==)\s*|\b!?in\b/ foldingStopMarker: "^\\@endif",|!)=?|==)\s*|\b!?in\b/ |
||
157 | <|!)=?|==)\s*|\b!?in\b/ keyEquivalent: "@B",|!)=?|==)\s*|\b!?in\b/ |
||
158 | <|!)=?|==)\s*|\b!?in\b/ name: "Bro",|!)=?|==)\s*|\b!?in\b/ |
||
159 | <|!)=?|==)\s*|\b!?in\b/ scopeName: "source.bro"|!)=?|==)\s*|\b!?in\b/ |
||
160 | <|!)=?|==)\s*|\b!?in\b/}|!)=?|==)\s*|\b!?in\b/ |
||
161 | |||
162 | |||
163 | <|!)=?|==)\s*|\b!?in\b/oop.inherits(BroHighlightRules, TextHighlightRules);|!)=?|==)\s*|\b!?in\b/ |
||
164 | |||
165 | <|!)=?|==)\s*|\b!?in\b/exports.BroHighlightRules = BroHighlightRules;|!)=?|==)\s*|\b!?in\b/ |
||
166 | <|!)=?|==)\s*|\b!?in\b/});|!)=?|==)\s*|\b!?in\b/ |
||
167 | |||
168 | <|!)=?|==)\s*|\b!?in\b/define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {|!)=?|==)\s*|\b!?in\b/ |
||
169 | <|!)=?|==)\s*|\b!?in\b/"use strict";|!)=?|==)\s*|\b!?in\b/ |
||
170 | |||
171 | <|!)=?|==)\s*|\b!?in\b/var oop = require("../../lib/oop");|!)=?|==)\s*|\b!?in\b/ |
||
172 | <|!)=?|==)\s*|\b!?in\b/var Range = require("../../range").Range;|!)=?|==)\s*|\b!?in\b/ |
||
173 | <|!)=?|==)\s*|\b!?in\b/var BaseFoldMode = require("./fold_mode").FoldMode;|!)=?|==)\s*|\b!?in\b/ |
||
174 | |||
175 | <|!)=?|==)\s*|\b!?in\b/var FoldMode = exports.FoldMode = function(commentRegex) {|!)=?|==)\s*|\b!?in\b/ |
||
176 | <|!)=?|==)\s*|\b!?in\b/ if (commentRegex) {|!)=?|==)\s*|\b!?in\b/ |
||
177 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStartMarker = new RegExp(|!)=?|==)\s*|\b!?in\b/ |
||
178 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)|!)=?|==)\s*|\b!?in\b/ |
||
179 | <|!)=?|==)\s*|\b!?in\b/ );|!)=?|==)\s*|\b!?in\b/ |
||
180 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStopMarker = new RegExp(|!)=?|==)\s*|\b!?in\b/ |
||
181 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)|!)=?|==)\s*|\b!?in\b/ |
||
182 | <|!)=?|==)\s*|\b!?in\b/ );|!)=?|==)\s*|\b!?in\b/ |
||
183 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
184 | <|!)=?|==)\s*|\b!?in\b/};|!)=?|==)\s*|\b!?in\b/ |
||
185 | <|!)=?|==)\s*|\b!?in\b/oop.inherits(FoldMode, BaseFoldMode);|!)=?|==)\s*|\b!?in\b/ |
||
186 | |||
187 | <|!)=?|==)\s*|\b!?in\b/(function() {|!)=?|==)\s*|\b!?in\b/ |
||
188 | |||
189 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;|!)=?|==)\s*|\b!?in\b/ |
||
190 | <|!)=?|==)\s*|\b!?in\b/ this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;|!)=?|==)\s*|\b!?in\b/ |
||
191 | <|!)=?|==)\s*|\b!?in\b/ this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;|!)=?|==)\s*|\b!?in\b/ |
||
192 | <|!)=?|==)\s*|\b!?in\b/ this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;|!)=?|==)\s*|\b!?in\b/ |
||
193 | <|!)=?|==)\s*|\b!?in\b/ this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;|!)=?|==)\s*|\b!?in\b/ |
||
194 | <|!)=?|==)\s*|\b!?in\b/ this._getFoldWidgetBase = this.getFoldWidget;|!)=?|==)\s*|\b!?in\b/ |
||
195 | <|!)=?|==)\s*|\b!?in\b/ this.getFoldWidget = function(session, foldStyle, row) {|!)=?|==)\s*|\b!?in\b/ |
||
196 | <|!)=?|==)\s*|\b!?in\b/ var line = session.getLine(row);|!)=?|==)\s*|\b!?in\b/ |
||
197 | |||
198 | <|!)=?|==)\s*|\b!?in\b/ if (this.singleLineBlockCommentRe.test(line)) {|!)=?|==)\s*|\b!?in\b/ |
||
199 | <|!)=?|==)\s*|\b!?in\b/ if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))|!)=?|==)\s*|\b!?in\b/ |
||
200 | <|!)=?|==)\s*|\b!?in\b/ return "";|!)=?|==)\s*|\b!?in\b/ |
||
201 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
202 | |||
203 | <|!)=?|==)\s*|\b!?in\b/ var fw = this._getFoldWidgetBase(session, foldStyle, row);|!)=?|==)\s*|\b!?in\b/ |
||
204 | |||
205 | <|!)=?|==)\s*|\b!?in\b/ if (!fw && this.startRegionRe.test(line))|!)=?|==)\s*|\b!?in\b/ |
||
206 | <|!)=?|==)\s*|\b!?in\b/ return "start"; // lineCommentRegionStart|!)=?|==)\s*|\b!?in\b/ |
||
207 | |||
208 | <|!)=?|==)\s*|\b!?in\b/ return fw;|!)=?|==)\s*|\b!?in\b/ |
||
209 | <|!)=?|==)\s*|\b!?in\b/ };|!)=?|==)\s*|\b!?in\b/ |
||
210 | |||
211 | <|!)=?|==)\s*|\b!?in\b/ this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {|!)=?|==)\s*|\b!?in\b/ |
||
212 | <|!)=?|==)\s*|\b!?in\b/ var line = session.getLine(row);|!)=?|==)\s*|\b!?in\b/ |
||
213 | |||
214 | <|!)=?|==)\s*|\b!?in\b/ if (this.startRegionRe.test(line))|!)=?|==)\s*|\b!?in\b/ |
||
215 | <|!)=?|==)\s*|\b!?in\b/ return this.getCommentRegionBlock(session, line, row);|!)=?|==)\s*|\b!?in\b/ |
||
216 | |||
217 | <|!)=?|==)\s*|\b!?in\b/ var match = line.match(this.foldingStartMarker);|!)=?|==)\s*|\b!?in\b/ |
||
218 | <|!)=?|==)\s*|\b!?in\b/ if (match) {|!)=?|==)\s*|\b!?in\b/ |
||
219 | <|!)=?|==)\s*|\b!?in\b/ var i = match.index;|!)=?|==)\s*|\b!?in\b/ |
||
220 | |||
221 | <|!)=?|==)\s*|\b!?in\b/ if (match[1])|!)=?|==)\s*|\b!?in\b/ |
||
222 | <|!)=?|==)\s*|\b!?in\b/ return this.openingBracketBlock(session, match[1], row, i);|!)=?|==)\s*|\b!?in\b/ |
||
223 | |||
224 | <|!)=?|==)\s*|\b!?in\b/ var range = session.getCommentFoldRange(row, i + match[0].length, 1);|!)=?|==)\s*|\b!?in\b/ |
||
225 | |||
226 | <|!)=?|==)\s*|\b!?in\b/ if (range && !range.isMultiLine()) {|!)=?|==)\s*|\b!?in\b/ |
||
227 | <|!)=?|==)\s*|\b!?in\b/ if (forceMultiline) {|!)=?|==)\s*|\b!?in\b/ |
||
228 | <|!)=?|==)\s*|\b!?in\b/ range = this.getSectionRange(session, row);|!)=?|==)\s*|\b!?in\b/ |
||
229 | <|!)=?|==)\s*|\b!?in\b/ } else if (foldStyle != "all")|!)=?|==)\s*|\b!?in\b/ |
||
230 | <|!)=?|==)\s*|\b!?in\b/ range = null;|!)=?|==)\s*|\b!?in\b/ |
||
231 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
232 | |||
233 | <|!)=?|==)\s*|\b!?in\b/ return range;|!)=?|==)\s*|\b!?in\b/ |
||
234 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
235 | |||
236 | <|!)=?|==)\s*|\b!?in\b/ if (foldStyle === "markbegin")|!)=?|==)\s*|\b!?in\b/ |
||
237 | <|!)=?|==)\s*|\b!?in\b/ return;|!)=?|==)\s*|\b!?in\b/ |
||
238 | |||
239 | <|!)=?|==)\s*|\b!?in\b/ var match = line.match(this.foldingStopMarker);|!)=?|==)\s*|\b!?in\b/ |
||
240 | <|!)=?|==)\s*|\b!?in\b/ if (match) {|!)=?|==)\s*|\b!?in\b/ |
||
241 | <|!)=?|==)\s*|\b!?in\b/ var i = match.index + match[0].length;|!)=?|==)\s*|\b!?in\b/ |
||
242 | |||
243 | <|!)=?|==)\s*|\b!?in\b/ if (match[1])|!)=?|==)\s*|\b!?in\b/ |
||
244 | <|!)=?|==)\s*|\b!?in\b/ return this.closingBracketBlock(session, match[1], row, i);|!)=?|==)\s*|\b!?in\b/ |
||
245 | |||
246 | <|!)=?|==)\s*|\b!?in\b/ return session.getCommentFoldRange(row, i, -1);|!)=?|==)\s*|\b!?in\b/ |
||
247 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
248 | <|!)=?|==)\s*|\b!?in\b/ };|!)=?|==)\s*|\b!?in\b/ |
||
249 | |||
250 | <|!)=?|==)\s*|\b!?in\b/ this.getSectionRange = function(session, row) {|!)=?|==)\s*|\b!?in\b/ |
||
251 | <|!)=?|==)\s*|\b!?in\b/ var line = session.getLine(row);|!)=?|==)\s*|\b!?in\b/ |
||
252 | <|!)=?|==)\s*|\b!?in\b/ var startIndent = line.search(/\S/);|!)=?|==)\s*|\b!?in\b/ |
||
253 | <|!)=?|==)\s*|\b!?in\b/ var startRow = row;|!)=?|==)\s*|\b!?in\b/ |
||
254 | <|!)=?|==)\s*|\b!?in\b/ var startColumn = line.length;|!)=?|==)\s*|\b!?in\b/ |
||
255 | <|!)=?|==)\s*|\b!?in\b/ row = row + 1;|!)=?|==)\s*|\b!?in\b/ |
||
256 | <|!)=?|==)\s*|\b!?in\b/ var endRow = row;|!)=?|==)\s*|\b!?in\b/ |
||
257 | <|!)=?|==)\s*|\b!?in\b/ var maxRow = session.getLength();|!)=?|==)\s*|\b!?in\b/ |
||
258 | <|!)=?|==)\s*|\b!?in\b/ while (++row < maxRow) {|!)=?|==)\s*|\b!?in\b/ |
||
259 | <|!)=?|==)\s*|\b!?in\b/ line = session.getLine(row);|!)=?|==)\s*|\b!?in\b/ |
||
260 | <|!)=?|==)\s*|\b!?in\b/ var indent = line.search(/\S/);|!)=?|==)\s*|\b!?in\b/ |
||
261 | <|!)=?|==)\s*|\b!?in\b/ if (indent === -1)|!)=?|==)\s*|\b!?in\b/ |
||
262 | <|!)=?|==)\s*|\b!?in\b/ continue;|!)=?|==)\s*|\b!?in\b/ |
||
263 | <|!)=?|==)\s*|\b!?in\b/ if (startIndent > indent)|!)=?|==)\s*|\b!?in\b/ |
||
264 | <|!)=?|==)\s*|\b!?in\b/ break;|!)=?|==)\s*|\b!?in\b/ |
||
265 | <|!)=?|==)\s*|\b!?in\b/ var subRange = this.getFoldWidgetRange(session, "all", row);|!)=?|==)\s*|\b!?in\b/ |
||
266 | |||
267 | <|!)=?|==)\s*|\b!?in\b/ if (subRange) {|!)=?|==)\s*|\b!?in\b/ |
||
268 | <|!)=?|==)\s*|\b!?in\b/ if (subRange.start.row <= startRow) {|!)=?|==)\s*|\b!?in\b/ |
||
269 | <|!)=?|==)\s*|\b!?in\b/ break;|!)=?|==)\s*|\b!?in\b/ |
||
270 | <|!)=?|==)\s*|\b!?in\b/ } else if (subRange.isMultiLine()) {|!)=?|==)\s*|\b!?in\b/ |
||
271 | <|!)=?|==)\s*|\b!?in\b/ row = subRange.end.row;|!)=?|==)\s*|\b!?in\b/ |
||
272 | <|!)=?|==)\s*|\b!?in\b/ } else if (startIndent == indent) {|!)=?|==)\s*|\b!?in\b/ |
||
273 | <|!)=?|==)\s*|\b!?in\b/ break;|!)=?|==)\s*|\b!?in\b/ |
||
274 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
275 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
276 | <|!)=?|==)\s*|\b!?in\b/ endRow = row;|!)=?|==)\s*|\b!?in\b/ |
||
277 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
278 | |||
279 | <|!)=?|==)\s*|\b!?in\b/ return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);|!)=?|==)\s*|\b!?in\b/ |
||
280 | <|!)=?|==)\s*|\b!?in\b/ };|!)=?|==)\s*|\b!?in\b/ |
||
281 | <|!)=?|==)\s*|\b!?in\b/ this.getCommentRegionBlock = function(session, line, row) {|!)=?|==)\s*|\b!?in\b/ |
||
282 | <|!)=?|==)\s*|\b!?in\b/ var startColumn = line.search(/\s*$/);|!)=?|==)\s*|\b!?in\b/ |
||
283 | <|!)=?|==)\s*|\b!?in\b/ var maxRow = session.getLength();|!)=?|==)\s*|\b!?in\b/ |
||
284 | <|!)=?|==)\s*|\b!?in\b/ var startRow = row;|!)=?|==)\s*|\b!?in\b/ |
||
285 | |||
286 | <|!)=?|==)\s*|\b!?in\b/ var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;|!)=?|==)\s*|\b!?in\b/ |
||
287 | <|!)=?|==)\s*|\b!?in\b/ var depth = 1;|!)=?|==)\s*|\b!?in\b/ |
||
288 | <|!)=?|==)\s*|\b!?in\b/ while (++row < maxRow) {|!)=?|==)\s*|\b!?in\b/ |
||
289 | <|!)=?|==)\s*|\b!?in\b/ line = session.getLine(row);|!)=?|==)\s*|\b!?in\b/ |
||
290 | <|!)=?|==)\s*|\b!?in\b/ var m = re.exec(line);|!)=?|==)\s*|\b!?in\b/ |
||
291 | <|!)=?|==)\s*|\b!?in\b/ if (!m) continue;|!)=?|==)\s*|\b!?in\b/ |
||
292 | <|!)=?|==)\s*|\b!?in\b/ if (m[1]) depth--;|!)=?|==)\s*|\b!?in\b/ |
||
293 | <|!)=?|==)\s*|\b!?in\b/ else depth++;|!)=?|==)\s*|\b!?in\b/ |
||
294 | |||
295 | <|!)=?|==)\s*|\b!?in\b/ if (!depth) break;|!)=?|==)\s*|\b!?in\b/ |
||
296 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
297 | |||
298 | <|!)=?|==)\s*|\b!?in\b/ var endRow = row;|!)=?|==)\s*|\b!?in\b/ |
||
299 | <|!)=?|==)\s*|\b!?in\b/ if (endRow > startRow) {|!)=?|==)\s*|\b!?in\b/ |
||
300 | <|!)=?|==)\s*|\b!?in\b/ return new Range(startRow, startColumn, endRow, line.length);|!)=?|==)\s*|\b!?in\b/ |
||
301 | <|!)=?|==)\s*|\b!?in\b/ }|!)=?|==)\s*|\b!?in\b/ |
||
302 | <|!)=?|==)\s*|\b!?in\b/ };|!)=?|==)\s*|\b!?in\b/ |
||
303 | |||
304 | <|!)=?|==)\s*|\b!?in\b/}).call(FoldMode.prototype);|!)=?|==)\s*|\b!?in\b/ |
||
305 | |||
306 | <|!)=?|==)\s*|\b!?in\b/});|!)=?|==)\s*|\b!?in\b/ |
||
307 | |||
308 | <|!)=?|==)\s*|\b!?in\b/define("ace/mode/bro",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/bro_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {|!)=?|==)\s*|\b!?in\b/ |
||
309 | <|!)=?|==)\s*|\b!?in\b/"use strict";|!)=?|==)\s*|\b!?in\b/ |
||
310 | |||
311 | <|!)=?|==)\s*|\b!?in\b/var oop = require("../lib/oop");|!)=?|==)\s*|\b!?in\b/ |
||
312 | <|!)=?|==)\s*|\b!?in\b/var TextMode = require("./text").Mode;|!)=?|==)\s*|\b!?in\b/ |
||
313 | <|!)=?|==)\s*|\b!?in\b/var BroHighlightRules = require("./bro_highlight_rules").BroHighlightRules;|!)=?|==)\s*|\b!?in\b/ |
||
314 | <|!)=?|==)\s*|\b!?in\b/var FoldMode = require("./folding/cstyle").FoldMode;|!)=?|==)\s*|\b!?in\b/ |
||
315 | |||
316 | <|!)=?|==)\s*|\b!?in\b/var Mode = function() {|!)=?|==)\s*|\b!?in\b/ |
||
317 | <|!)=?|==)\s*|\b!?in\b/ this.HighlightRules = BroHighlightRules;|!)=?|==)\s*|\b!?in\b/ |
||
318 | <|!)=?|==)\s*|\b!?in\b/ this.foldingRules = new FoldMode();|!)=?|==)\s*|\b!?in\b/ |
||
319 | <|!)=?|==)\s*|\b!?in\b/};|!)=?|==)\s*|\b!?in\b/ |
||
320 | <|!)=?|==)\s*|\b!?in\b/oop.inherits(Mode, TextMode);|!)=?|==)\s*|\b!?in\b/ |
||
321 | |||
322 | <|!)=?|==)\s*|\b!?in\b/(function() {|!)=?|==)\s*|\b!?in\b/ |
||
323 | <|!)=?|==)\s*|\b!?in\b/ this.$id = "ace/mode/bro"|!)=?|==)\s*|\b!?in\b/ |
||
324 | <|!)=?|==)\s*|\b!?in\b/}).call(Mode.prototype);|!)=?|==)\s*|\b!?in\b/ |
||
325 | |||
326 | <|!)=?|==)\s*|\b!?in\b/exports.Mode = Mode;|!)=?|==)\s*|\b!?in\b/ |
||
327 | <|!)=?|==)\s*|\b!?in\b/});|!)=?|==)\s*|\b!?in\b/ |