Decimal numbers can have a 'd' or 'D' post-fixed. (Which is redundant because decimal is default.) Additionally, numbers can be broken into parts with single-quotes or underline characters. This is particularly useful for binary numbers. For example,

I've fixed it, and now both missing features are implemented. If I've understood corretly, the usage of ' or _ to split long numbers applies to any type (hex, dec, octal, bin, ecc.), correct? That's how I implemented it now.

By the way: since I've created the highlighter syntax from the tokens found in Fasm source file TABLES.INC, there might still be some tokens left out -- ie: those using symbols combinations, like $$ or %t, etc.

For example, I'm not sure how to go about the "%t" symbol: currently it's ignored. Should I leave it as plain text? colorize it like operators, or what else?

Of course, some choices are arbitrary. For example, I chose to colorize $ and $$ just like labels, for two reasons: (1) like labels, they define an offset in the memory space; (2) they usually appear next to arythmetic operators like + or -, so a different coloring is preferable.

Since this type of highlighing is meant to produce documents (and there are no performance worries, unlike in live editors), the idea is to use colors to make sifting through source code visually easier by offering meaningful color to tokens associations.

People have different reasons for using highlighting: some like to just follow code paths quickly - being able to identify IP/EIP/RIP modifying instructions. Others like to follow instructions that modify flags, or subsets of registers/instructions.

Thus far I like your thought process on the matter. Along the same reasoning %t is a symbol that equals a number - either of those choices seem valid.

Browsing code could be eased by linkages to symbol definitions, or other usages of a symbol. Modern tools generate code graphs and memory maps. Code can become quite complex - I welcome all such tools with open arms.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum