When creating nasm-full-instruction-regexp, you concatenate pfx and ins. These are generated using nasm--opt, which uses regexp-opt with 'words as argument.
As you can see in the GNU emacs documentation, when using 'words, it surrounds each word with \<EXPR\>, while using 'symbols as parameter surrounds each word with \_<EXPR\_>. This should be the desired behavior, because mov should be highlighted, but movABCD and mov_label should not (the last one currently matches using 'words).
When creating
nasm-full-instruction-regexp
, you concatenatepfx
andins
. These are generated usingnasm--opt
, which usesregexp-opt
with'words
as argument.As you can see in the GNU emacs documentation, when using
'words
, it surrounds each word with\<EXPR\>
, while using'symbols
as parameter surrounds each word with\_<EXPR\_>
. This should be the desired behavior, becausemov
should be highlighted, butmovABCD
andmov_label
should not (the last one currently matches using'words
).Closes #12