bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Multi-Line strings lead to incorrect error line numbers

Open GWRon opened this issue 1 year ago • 0 comments

When using multi-line strings potential errors (after the multi-line definition) are incorrectly offset by "multi-line line count - 1" .

SuperStrict
Framework Brl.StandardIO


Local multiLine:String = """
hello
world
hallo
welt
bonjour
monde
"""

Local i:Int = 12


syntaxerror

Local i2:Int = 13

Function AdditionalText()
	Print 1
	Print 2
	Print 3
End Function

Output:

Compile Error: Identifier 'syntaxerror' not found.
[/home/ronny/Arbeit/Tools/BlitzMaxNG/tmp/untitled1.bmx;22;0]

image

GWRon avatar Oct 30 '24 12:10 GWRon