Skip to content

Conversation

8dcc
Copy link
Collaborator

@8dcc 8dcc commented Oct 5, 2025

This pull request removes NASM token/keyword definitions from nasm-mode.el, and instead includes it from a nasmtok.el file, which is included with the NASM distribution since 2.16.01.

Other changes include:

  • Add a nasm-special face, which matches nasm-prefix (i.e. font-lock-builtin-face).
  • Allow variable arguments (multiple keyword lists) in nasm--opt.
  • Rename nasm-instructions to nasm-instruction and nasm-registers to nasm-register, for consistency.
  • Add nasm-special and nasm-special-constant constants, which contain keywords that should be highlighted with the nasm-special face.
  • Replace nasm-types with nasm-decorator and nasm-size constants.
  • Add nasm-mmacro and nasm-smacro constants, which are highlighted using the nasm-preprocessor face, just like nasm-pp-directive.

Closes #14.

8dcc added 4 commits March 20, 2025 18:26
After looking at the Perl script, I don't think it's worth the effort.
Adapt 'nasm-mode.el' to match the new format. Specifically:

* Add 'nasm-special' face, which matches 'nasm-prefix'.
* Add 'nasm-specials' constant, which combines 'nasm-special' and
  'nasm-special-constant'.
* Add 'nasm-preprocessor' constant, which combines 'nasm-pp-directive',
'nasm-mmacro' and 'nasm-smacro'.
* Rename 'nasm-types' constant to 'nasm-type'.
Remove intermediate constants:

* nasm-specials
* nasm-type
* nasm-preprocessor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically generated token lists available

1 participant