the role handling in rst mode crashes codemirror (assertion error undefined).
just try to enter something like "bla bla :math: bla bla" in codemirror when rst mode is active.
- codemirror stops working, right after you enter the second ":"
opening a file, when a rst role is slightly wrong typed or has a mistyped character (see "x"), crashes codemirror.
example:
:ref:xparameterstudy
or try to copy/paste the above string into the editor: codemirror crashes.