kylelaker / riscv.vim

RISC-V Assembly Syntax Highlighting for Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

riscv.vim

RISC-V syntax highlighting for Vim.

This will override any other syntaxes for .S files.

Installation

Manually

Put all files in your vim directory (such as ~/.vim/ or ~/.config/nvim/)

VimPlug

  1. Add the following to your .vimrc.

     Plug 'kylelaker/riscv.vim'
    
  2. Install with :PlugInstall

Syntax Support

The syntax highlighting within this plugin is based on several sources. Primarily, the latest versions of the The RISC-V ISA Specification, and specifically Volume I: Unprivileged ISA v. 201912123 and Volume II: Privileged Architecture v. 20211203. Additionally, the RISC-V Assembly Programmer's Manual is used as a reference for things not covered by the specification itself.

It is a goal to support any syntax that has been changed or renamed (such as the fmv.x.s instruction) and syntax from drafts that may have real-world usage, though support for these may not be as complete. Contributions to add these are welcome.

Draft specifications implemented are based on:

Usage

Save your files with a .S extension or execute set ft=riscv.

About

RISC-V Assembly Syntax Highlighting for Vim

License:MIT License


Languages

Language:Vim Script 100.0%