Based on previous investigations into the scope {T259700} and fixes in {T262255} add bracket matching to the syntax highlighting feature in the the 2017 and 2010 wikitext editors.
**Scope**
* **Implement in both 2017 Wikitext editor (source view inside VE) and the 2010 wikitext editor.**
* It has already been raised that syntax highlighting does not work in RLT (see T170001). For nowImplement small default bracket matching, set these issues aside.in both 2010 and 2017 (VE) wikitext editors
* It has also been raised that[] Enable standard bracket matching might be particularly difficult in some non-latin writing systemsg add-on, particularly Japanese and Chinese,to highlight a single bracket's match. which use IMEIncludes [{( type brackets. Solving this issue is also not part of the scope.
See also the initial investigation for more detail: {T254976}
**Requirements:**Includes only single matching, not highlighting pairs or triples.
[] Load addon scripts.
[] 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 cleanupHighlight unbalanced brackets in red, an upstream style is commented out when it should be overridden.when a match is not found
[] 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.Add section highlighting, 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:**
{F32242208}
{F32242211}where a cursor at an arbitrary position highlights the two most innermost
Release schedule/move from test instance to beta is still TBD.