skeeto / nasm-mode

Major mode for editing NASM assembly programs
The Unlicense
79 stars 17 forks source link

Use 'symbols instead of 'words for regexp-opt #15

Closed 8dcc closed 5 months ago

8dcc commented 1 year ago

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).

Closes #12