We've made some small changes to the bracket matching plugin. These need to be upstreamed, or we need to rename the plugin and call it our own.
CSS changes should probably be pushed out to the MediaWiki-extension-CodeMirror, since they don't belong upstream. Accessible colors should be reverted (due to invalidation during test). Error highlighting should be suppressed but by introducing a configuration flag.
Our changes would ideally not make any difference to the behavior of the upstream library. Each feature, especially if it does make a behavioral change, needs to be isolated into its own patchset, ideally not dependent on any others. This makes it easier to submit patch requests and discuss orthogonally.
"Renaming" would be a fallback strategy. If we're unable to upstream all of our changes, then we need to visibly fork the plugin, e.g. "brackets-wmde.js", and include self-documentation explaining when and how we forked. This is necessary so that the people responsible for the future CodeMirror 6 upgrade aren't taken by surprise, and accidentally miss our customizations during the migration. (Note: T270317 and this ticket partly overlap.)
[x] Document our customizations. Done via T270317.
 Rename our customized version.
 Check which of our changes we can upstream.
 Introduce a config flag to disable the error highlighting, if possible. Suggest this upstream as well.
 Reverting the accessibility colors (if even necessary) should be a separate ticket.