Syntax highlighting: HexSuffix

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
gurok
Posts: 12
Joined: Tue Apr 06, 2010 3:15 am

Syntax highlighting: HexSuffix

Post by gurok »

In syntax definition files, can we get a HexSuffix and match hexadecimal numbers only if they have both the prefix and suffix? You could maintain existing behaviour by having HexSuffix default to "" (empty string).

In various flavours of ASM, it's common to denote hexadecimal as:

Code: Select all

  034h
     ^
Where the trailing h signifies that it's hexadecimal.
User avatar
AmigoJack
Posts: 567
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Syntax highlighting: HexSuffix

Post by AmigoJack »

Then a BinSuffix would also be handy for languages where you can also use binary literals, which are then distinctive by a trailing "b".
User avatar
bbadmin
Site Admin
Posts: 948
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Syntax highlighting: HexSuffix

Post by bbadmin »

Good idea. TextPad already recognizes binary numbers starting with "0b" or "0B", as used in C++.
Post Reply