Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Line strings lead to incorrect error line numbers #670

Open
GWRon opened this issue Oct 30, 2024 · 0 comments
Open

Multi-Line strings lead to incorrect error line numbers #670

GWRon opened this issue Oct 30, 2024 · 0 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Oct 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant