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

Working on new editor enhancements?
User avatar
STARGÅTE
Addict
Addict
Posts: 2232
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

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

Post 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
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

It was removed because we can't detect if it's asm or C code, and ; is valid in C
User avatar
STARGÅTE
Addict
Addict
Posts: 2232
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

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

Post 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.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

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

Post 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?
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

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

Post 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.
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

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

Post by BarryG »

Ohhh.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

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

Post 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?
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

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

Post by AZJIO »

The compiler choice should determine the code highlighting flag. But it's always easier said than done.
Post Reply