Microsoft/monaco-editor

[Monarch Julia grammar] interpolation breaks inside multiline strings

Open

#2.357 geöffnet am 17. Feb. 2021

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (1.283 Forks)batch import
buggrammarshelp wanted

Repository-Metriken

Stars
 (14.836 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6h 26m) (15 gemergte PRs in 30 T)

Beschreibung

monaco-editor version: 0.22.3 Browser: Google Chrome 88.0.4324.182 (Official Build) (64-bit) (cohort: 88_Win_182) OS: Windows 10

Hi!

Using the built-in julia mode, string interpolation inside a multiline string seems to break the syntax highlighting whenever any right parenthesis ) is encountered, not just the final one that closes the interpolation. Example:

Multiline_interpolation_breaks_in_monaco

I had a little go at it but I have to learn more about Monarch before I can be of any use here. Here's a codesandbox with some more test cases, and an editable copy of the current julia mode included with monaco-editor for easy experimenting.

Contributor Guide