|
109 | 109 | var nameParts = getText(name).split(".");
|
110 | 110 | for (var i = 0; i < nameParts.length; i++)
|
111 | 111 | nameParts[i] = identifierQuote +
|
112 |
| - // duplicate identifierQuotes |
113 |
| - nameParts[i].replace(new RegExp(identifierQuote,"g"), identifierQuote+identifierQuote) + |
114 |
| - identifierQuote; |
| 112 | + // duplicate identifierQuotes |
| 113 | + nameParts[i].replace(new RegExp(identifierQuote,"g"), identifierQuote+identifierQuote) + |
| 114 | + identifierQuote; |
115 | 115 | var escaped = nameParts.join(".");
|
116 | 116 | if (typeof name == "string") return escaped;
|
117 | 117 | name = shallowClone(name);
|
|
283 | 283 | }
|
284 | 284 | return w;
|
285 | 285 | };
|
286 |
| - addMatches(result, search, defaultTable, function(w) { |
| 286 | + addMatches(result, search, defaultTable, function(w) { |
287 | 287 | return objectOrClass(w, "CodeMirror-hint-table CodeMirror-hint-default-table");
|
288 |
| - }); |
289 |
| - addMatches( |
| 288 | + }); |
| 289 | + addMatches( |
290 | 290 | result,
|
291 | 291 | search,
|
292 | 292 | tables, function(w) {
|
293 | 293 | return objectOrClass(w, "CodeMirror-hint-table");
|
294 | 294 | }
|
295 |
| - ); |
296 |
| - if (!disableKeywords) |
297 |
| - addMatches(result, search, keywords, function(w) { |
| 295 | + ); |
| 296 | + if (!disableKeywords) |
| 297 | + addMatches(result, search, keywords, function(w) { |
298 | 298 | return objectOrClass(w.toUpperCase(), "CodeMirror-hint-keyword");
|
299 |
| - }); |
300 |
| - } |
| 299 | + }); |
| 300 | + } |
301 | 301 |
|
302 | 302 | return {list: result, from: Pos(cur.line, start), to: Pos(cur.line, end)};
|
303 | 303 | });
|
|
0 commit comments