(cm, rawQuery, ignoreCase, smartCase)
| 13158 | } |
| 13159 | // Returns true if the query is valid. |
| 13160 | function updateSearchQuery(cm, rawQuery, ignoreCase, smartCase) { |
| 13161 | if (!rawQuery) { |
| 13162 | return; |
| 13163 | } |
| 13164 | var state = getSearchState(cm); |
| 13165 | var query = parseQuery(rawQuery, !!ignoreCase, !!smartCase); |
| 13166 | if (!query) { |
| 13167 | return; |
| 13168 | } |
| 13169 | highlightSearchMatches(cm, query); |
| 13170 | if (regexEqual(query, state.getQuery())) { |
| 13171 | return query; |
| 13172 | } |
| 13173 | state.setQuery(query); |
| 13174 | return query; |
| 13175 | } |
| 13176 | function searchOverlay(query) { |
| 13177 | if (query.source.charAt(0) == '^') { |
| 13178 | var matchSol = true; |
no test coverage detected