Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'gnuasm' lexer #2010

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added 'gnuasm' lexer #2010

wants to merge 2 commits into from

Conversation

mpartel
Copy link

@mpartel mpartel commented Nov 16, 2023

Adds a lexer for GNU Assembler.

This is based on nasm.rb and might retain some NASMisms.
The most important differences to NASM: GNU Assembler directives start with ., registers start with %, and comment syntax is different.

This declares the same file extension '*.s' as 'armasm',
so this PR removes armasm_spec.rb, which tested guessing by file extension. Is there a better way to handle this ambiguity? so added a disambiguation rule.

This is based on 'nasm' and might retain some NASMisms.

This uses the same file extension as 'armasm',
so removed 'armasm_spec', which tested guessing by file extension.
@mpartel
Copy link
Author

mpartel commented Nov 16, 2023

Added disambiguation rule.

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.

1 participant