Highlighting identical to VS Code
- Problem
- When an editor colours code differently, even familiar code looks foreign.
- Fix
- The grammar engine was ported to Swift so it reads the same TextMate grammars and themes VS Code uses, with regular expressions handled by the same Oniguruma library. The language of untitled files is guessed by a model that runs on the device.
- Result
- 46 language grammars and 19 colour themes render in the same colours as on the desktop.