Add asm (assembler) language support based on tree-sitter-asm #7692
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The tree-sitter-asm syntax is more suitable for generic assembly language, including GNU assembler syntax, than the NASM-specific one.
This changes extensions for NASM so that asm syntax is used for ".s" and ".S" files, which are commonly used with the GNU assembler, and ".asm" and ".nasm" for NASM which are more commonly used with that.
The only thing I'm not sure about is tree-sitter-asm had highlight queries in the package already, so I just copied those but appended the LICENSE file to the beginning. Since it's MIT license I hope this is not a problem, but unfortunately I'm not the author of tree-sitter-asm so I can't help you with that. It would probably be more ideal if helix could also include highlight queries from git while building the grammars rather than having to be in the main helix repo.