-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add highlighting for assembler (.s) #3329
Comments
If I may; a problem with assembly 'language' suport is which? |
I mainly see gas, since that's what everything dumps by default... Would be nice to have some primitive highlighting for both of them. |
It would also be nice to use the asm tree sitter for inline assembly in languages such as Rust, C/C++ ... |
I'm pretty sure that you can't do that with rust, given that its syntax is a bit different from what I remember or has a different more usable for form compared to C/C++. |
Yeah you're right, it has a different syntax: unsafe {
asm!(
"mov {tmp}, {x}",
"shl {tmp}, 1",
"shl {x}, 2",
"add {x}, {tmp}",
x = inout(reg) x,
tmp = out(reg) _,
);
} I suppose a tree-sitter parser for rust-inline-assembly could be written and used, but that's a separate feature. |
I would be highly interested in having nasm support. IIRC, it's also highly used out there. Separate gas support would also be nice. |
Gas syntax is not yet included, correct? If that's the case, should this issue be reopened until it is or should another issue be created? |
Yep only nasm is currently supported. I think a new issue for gas is perferrable |
Would need a tree-sitter grammar for that.
The text was updated successfully, but these errors were encountered: