I want a code to be highlighted like this
jmp label ;comments
I want only label to be highlighted. I've tried something like this
context exclusive jmp\t \n brightmagenta
But in this case ";comments" turned brightmagenta as well which is not what I want. For the comments there is another exclusive context. I've tried also
keyword jmp\t\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@\] brightmagenta
But in this case jmp is brightmagenta also.
How can I implement this? I want only label to be affected by highlighting while comments are highlighted in the same manner everywhere(in the attached picture comments for jnz is brightmagenta and in the line after brown) and all the jumps are not affected by highlighting, hence I don't need to add them (and all other commands, variable, constants etc.) manually to the syntax file.
Closely related question, since every assembly programmer uses invoke macro is it possible to highlight just the function like in screenshot below? Function was written as keyword in syntax file however I don't want all the functions to the syntax file
I am by no means an expert but played around a little and I found a working solution that sets the default to highlighted and turns it off for the unneeded parts as follows:
It does seem to do what you asked but you might have other constraints that you did not mention.