Syntax colour of ASM keywords has no effect

Linux specific forum
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Syntax colour of ASM keywords has no effect

Post by uwekel »

Hi,

when i setup the syntax highlight color for ASM keywords, it has no effect. They are always rendered white (on black background).

Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax colour of ASM keywords has no effect

Post by Fred »

Seems to work correctly here, can anybody else confirm ?
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Syntax colour of ASM keywords has no effect

Post by idle »

Pb 5.20 b10, ubuntu 12.04 x64 in KDE

Using inline asm with ! color is correct
checking highlight asm keywords in compiler options and using EnableAsm color is correct
Windows 11, Manjaro, Raspberry Pi OS
Image
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Syntax colour of ASM keywords has no effect

Post by uwekel »

Hi! I have forgotten to set the option "Enable inline ASM syntax coloring" in the compiler options dialog :-( Why the hell this option is placed a second time there? There is already a checkbox in the global preferences dialog left beside ASM keywords color!
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax colour of ASM keywords has no effect

Post by Fred »

Because it depends of your source code/project. You don't want it globally enabled.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Syntax colour of ASM keywords has no effect

Post by uwekel »

Therefore the global option checkbox should be removed. At the moment it works only if you set both checkboxes.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax colour of ASM keywords has no effect

Post by Fred »

It's not the same: the checkbox before the ASM color is here to be able to turn it off completely, like any other color token.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Syntax colour of ASM keywords has no effect

Post by uwekel »

Thank you, Fred. IMHO i cannot imagine that someone want to use syntax highlighting in one but not in another project :o
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax colour of ASM keywords has no effect

Post by Fred »

If you don't use asm, you can use asm keywords like "test", "call" etc which are common enough to be used. Having a coloring which move them in uppercase when you don't use asm at all isn't a good idea. And the asm keyword are dependant of the processor.
Post Reply