Microsoft/monaco-editor
在 GitHub 查看[Monarch Julia grammar] interpolation breaks inside multiline strings
Open
#2,357 建立於 2021年2月17日
buggrammarshelp wanted
倉庫指標
- Star
- (14,836 star)
- PR 合併指標
- (平均合併 6小時 26分鐘) (30 天內合併 15 個 PR)
描述
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:

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.