Following up on previous investigation into the scope T259700: Investigation: scope bracket matching and tag matching add-ons, debug the behavior of the bracket matching add on in the the 2017 (source view inside VE) and 2010 wikitext editors. These changes are to be implemented on the test instance for usability testing (and to avoid that our branch on the beta cluster does not get blocked by the time required for testing).
See also the initial investigation for more detail: T254976: Investigation: Bracket matching
Requirements:
- Change highlighting styles. Matched and unmatched brackets should have white text color (Base100). Matched bracket character should have a gray background color (Base20), unmatched brackets should have a red background (Red30). Needs some cleanup, an upstream style is commented out when it should be overridden.
- Fix bracket-matching logic to consistently detect all types of brackets, in each configuration. Currently (, {, [ each highlight but not in every situation and it's not yet clear what is causing this. Possibly add < as well. Must include tests.
- Fix VisualEditor "new wikitext" integration breaking the cursorActivity event.
Nice to have:
- Fix bracket-matching to detect and highlight "{{" and "[[" as pairs.
Mocks: