Steps to replicate the issue (include links if applicable):
- Edit a sandbox page with CodeMirror 6 enabled.
- Insert {{a|__toc__}}__toc__ into the editor.
What happens?:
The behavior switch __toc__ is only highlighted outside the template.
What should have happened instead?:
The behavior switch should also be highlighted inside a template.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):