github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
11.95k stars 4.13k forks source link

ARM32 Assembly Language #5346

Open JoaoBaptMG opened 3 years ago

JoaoBaptMG commented 3 years ago

Language name

ARM Assembly

URL of example repository

My repository has plenty of source files in ARM assembly, since I have been working a lot with code for the Game Boy Advance. ARM assembly files are heavily used as well on other similar projects on the GBA dev scene (for example, this one, a full repository of ARM assembly functions for the GBA).

URL of syntax highlighting grammar

As far as I know, there's no syntax highlighting grammar specific for the ARM assembly files, but one could be adapted from the x86 assembly grammar.

Most popular extensions

The most used are .s and .asm, though they would have to be manually defined on a .gitattributes file for it to work.

Detected language

They are normally detected as "normal" assembly or even plain text, since .s doesn't have a set extension as far as I am aware.

Note

I'm not sure about the similarity with the AArch64 assembly language, but since it is there, there might be some use for syntax highlighting on it as well.

LunarLambda commented 3 years ago

There's also the extension .S, used commonly for "Assembly with C Preprocessor", which is exactly what it says on the tin.

s5bug commented 1 year ago

👍 +1 for AArch64 assembly. https://github.com/s5bug/m1-helloworld/blob/99d569a25e50cc3fc5f64d69fca8dc1dff873ae4/main.s doesn't look that great otherwise (it gets treated as m68k assembly).