Zulip Chat Archive

Stream: lean4

Topic: Escaping in string templates confuses highlighting


Daniel Weber (Oct 01 2024 at 04:00):

The test2 string in here confuses the syntax highlighting in VSCode and live.lean-lang.org, and causes what's following it to be highlighted like it's inside a string, despite this being valid code.

def test := 1 + 1

def test2 : String := s!"\{"

#eval test2

def test3 := test + test + test

live.lean-lang.org:
image.png
vscode:
image.png

Marc Huisinga (Oct 01 2024 at 07:16):

Please report this as a bug in vscode-lean4.


Last updated: May 02 2025 at 03:31 UTC