Skip to content

Added 'gnuasm' lexer#2010

Open
mpartel wants to merge 2 commits into
rouge-ruby:mainfrom
mpartel:gnuasm
Open

Added 'gnuasm' lexer#2010
mpartel wants to merge 2 commits into
rouge-ruby:mainfrom
mpartel:gnuasm

Conversation

@mpartel
Copy link
Copy Markdown

@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
Copy Markdown
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