Page 1 of 1

No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sat Dec 23, 2023 6:05 pm
by STARGÅTE
Since 6.10, there is no syntax highlighting of comments in ASM in the IDE anymore.

PB 6.02 LTS: Comments are highlighted correctly.
Image

PB 6.10 Beta 1: All is in ASM colors :( .
Image

Edit: Ouch, it is probably since 6.03

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sat Dec 23, 2023 6:47 pm
by Fred
It was removed because we can't detect if it's asm or C code, and ; is valid in C

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sat Dec 23, 2023 8:32 pm
by STARGÅTE
Fred wrote: Sat Dec 23, 2023 6:47 pm It was removed because we can't detect if it's asm or C code, and ; is valid in C
But the compiler has the option "enable inline ASM syntax coloring".
Why should I enable ASM coloring, when I use C-code?

So you can fix the bug using the "old" syntax highlighting for ASM and comments when it is enabled and switch it off if not.

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sun Dec 24, 2023 2:50 am
by BarryG
Fred wrote: Sat Dec 23, 2023 6:47 pmwe can't detect if it's asm or C
But doesn't the leading "!" mean the entire line is ASM?

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sun Dec 24, 2023 4:30 am
by Little John
BarryG wrote: But doesn't the leading "!" mean the entire line is ASM?
It means that the entire line is ASM when using the ASM backend, and it means that the entire line is C when using the C backend.

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sun Dec 24, 2023 4:32 am
by BarryG
Ohhh.

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sun Dec 24, 2023 4:50 pm
by Tenaja
Little John wrote: Sun Dec 24, 2023 4:30 am
BarryG wrote: But doesn't the leading "!" mean the entire line is ASM?
It means that the entire line is ASM when using the ASM backend, and it means that the entire line is C when using the C backend.
Doesn't the ide know which is set up? Or, can't it be a setting?

Re: No syntax highlighting of comments in ASM (PB 6.10, but also since 6.03)

Posted: Sun Dec 24, 2023 6:45 pm
by AZJIO
The compiler choice should determine the code highlighting flag. But it's always easier said than done.