(match, info)
| 1230 | } |
| 1231 | |
| 1232 | function process(match, info) |
| 1233 | { |
| 1234 | var code = match.code, |
| 1235 | matches = [], |
| 1236 | regexList = scriptBrush.regexList, |
| 1237 | offset = match.index + match.left.length, |
| 1238 | htmlScript = scriptBrush.htmlScript, |
| 1239 | result |
| 1240 | ; |
| 1241 | |
| 1242 | // add all matches from the code |
| 1243 | for (var i = 0; i < regexList.length; i++) |
| 1244 | { |
| 1245 | result = getMatches(code, regexList[i]); |
| 1246 | offsetMatches(result, offset); |
| 1247 | matches = matches.concat(result); |
| 1248 | } |
| 1249 | |
| 1250 | // add left script bracket |
| 1251 | if (htmlScript.left != null && match.left != null) |
| 1252 | { |
| 1253 | result = getMatches(match.left, htmlScript.left); |
| 1254 | offsetMatches(result, match.index); |
| 1255 | matches = matches.concat(result); |
| 1256 | } |
| 1257 | |
| 1258 | // add right script bracket |
| 1259 | if (htmlScript.right != null && match.right != null) |
| 1260 | { |
| 1261 | result = getMatches(match.right, htmlScript.right); |
| 1262 | offsetMatches(result, match.index + match[0].lastIndexOf(match.right)); |
| 1263 | matches = matches.concat(result); |
| 1264 | } |
| 1265 | |
| 1266 | for (var j = 0; j < matches.length; j++) |
| 1267 | matches[j].brushName = brushClass.brushName; |
| 1268 | |
| 1269 | return matches; |
| 1270 | } |
| 1271 | }; |
| 1272 | |
| 1273 | /** |
nothing calls this directly
no test coverage detected