[bug #68209] Tabs make syntax error reporting incorrect
Sophia Koulen <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
URL:
<https://savannah.gnu.org/bugs/?68209>
Summary: Tabs make syntax error reporting incorrect
Group: GNU Octave
Submitter: sophiakoulen
Submitted: Fri 03 Apr 2026 02:36:23 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: Sophia Koulen
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: 9.4.0
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 03 Apr 2026 02:36:23 PM UTC By: Sophia Koulen <sophiakoulen>
When indenting with spaces I get:
error: parse error near line 1 of file ...
syntax error
>>> A = rand(3;
^
And when indenting with tabs I get:
error: parse error near line 1 of file ...
syntax error
>>> A = rand(3;
^
It seems that the column index of the error is computed incorrectly when there
are tabs.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68209>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCac/QbQAKCRCqLAuaBUf3 Tj9uAQCwF1HDS5FZ4t4Pgebq6HR9AiOBFR1BjRw7VZkyLUIzegEA7sH9uYgLKisK N+utbdkrJX7E+qdAntVoJBdAGrjnRQc= =+U9g -----END PGP SIGNATURE-----