henry-hsieh / riscv-asm-vim

Advanced RISC-V assembly syntax highlight for Vim and Neovim.
MIT License
14 stars 0 forks source link

[ Question ] Is this overkill for syntax highlighting? #5

Closed JxJxxJxJ closed 2 months ago

JxJxxJxJ commented 2 months ago

I have to work with ARMV8 and want just to be able to have my code highlighted properly. So far This plugin is the most colorful one, but am I looking in the right direction?

Any tips would be appreciated. image

henry-hsieh commented 2 months ago

I'm not quite understanding your question. Do you mean that you are working with RISC-V and ARM assembly at the same time. However, this plugin is messing your highlight of ARM assembly?

JxJxxJxJ commented 2 months ago

Apologies for not being clear enough. I'm working with LEGV8 to be exact and was looking for the best syntax highlighting possible. So far the plugin provides the most colorful one but I was wondering whether if I was looking at the best solution for this problem.

henry-hsieh commented 2 months ago

If you are looking for syntax highlighting of ARM ISA, this plugin may not suit for you. This plugin cannot recognize any ARM instruction or register. Especially, RISC-V doesn't use # before immediate. Therefore, the immediate in your example has been grayed out. You can check plugins like arm-syntax-vim or vim-gas.

JxJxxJxJ commented 2 months ago

Thank you! I'll check them out