adobe/brackets — pull request #2062 by peterflynn (2012-11-06 07:17:00+00:00)
Title: Fix Quick Open so discontiguous matches are highlighted in all modes

This is a follow-up to pull #1470, which adds discontiguous matching to Quick Open but only highlights such matches in bold in the default search mode. To make it work in all modes, we:

- Hoist out generic highlightMatch() utility to generate bolded strings
- Use it in both defaultResultsFormatter() and _filenameResultsFormatter()
- Export it so custom result renderers (in extensions) can also use it

Also:
- Clarify stringMatch() docs a bit
- Fix an older glitch in basicMatchSort(): the sort field precedence list had a gap, leading to a no-op comparison step