Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:36 13 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : syntax checker modfies comments

Author Message
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 226
Posted: 06:15pm 04 Dec 2024
Copy link to clipboard 
Print this post

Hello,

if I write this program into the editor:
' from a => b

and I save this, then I get after reopening the code this:
' from a >= b


So the syntax checker "corrects" my comments, but everything written after a comment ' should be unchanged, isn't it?

WebMite MMBasic RP2350A Edition V6.00.01RC1

-andreas
Edited 2024-12-05 04:18 by andreas
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1576
Posted: 06:57pm 04 Dec 2024
Copy link to clipboard 
Print this post

  andreas said  ... So the syntax checker "corrects" my comments, ...

There are more:

' a$=MM.INFO$(flash)

/*
0 = 1
a$=MM.INFO$(flash)
*/

maybe we'll find even more.
But I think Peter knows the phenomenon, so don't get excited.
If we had a list of more examples we could evaluate whether there is a problem.
Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10246
Posted: 07:20pm 04 Dec 2024
Copy link to clipboard 
Print this post

Can probably fix it
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3285
Posted: 03:20am 05 Dec 2024
Copy link to clipboard 
Print this post

This is strange, it looks as if the conversion from => to >= is being done in the preprocessor before it realises that it is a comment.

Geoff
Edited 2024-12-05 13:26 by Geoffg
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10246
Posted: 08:26am 05 Dec 2024
Copy link to clipboard 
Print this post

It is, have fixed in my dev version including in multi-line and REM statements
Edited 2024-12-05 18:26 by matherp
 
andreas

Senior Member

Joined: 07/12/2020
Location: Germany
Posts: 226
Posted: 06:19am 06 Dec 2024
Copy link to clipboard 
Print this post

How do you manage it to read all these many postings and be productive in programming at the same time?  
many thanks!
-andreas
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025