Skip to content

Instantly share code, notes, and snippets.

@TACIXAT
Created May 19, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TACIXAT/679b860ebc710ff443e5bccb9930b5ca to your computer and use it in GitHub Desktop.
Save TACIXAT/679b860ebc710ff443e5bccb9930b5ca to your computer and use it in GitHub Desktop.
Simple syntax highlighting for RiSC-16 in Sublime Text 3
%YAML1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
file_extensions:
- risc
scope: source.risc
contexts:
main:
- match: 'r[0-9]'
scope: support.type.risc
- match: 'addi|add|nand|lui|sw|lw|beq|jalr|jmp|farjmp|bind|lea|codeOffest|movi|nop|data'
scope: meta.function-call.risc
- match: 'irq\s+(success|yield)'
scope: keyword.control.risc
- match: '\b(-)?[0-9.]+\b|\b(-)?0x[0-9a-fA-F]+\b'
scope: constant.numeric.risc
- match: '#'
scope: punctuation.definition.comment.risc
push: line_comment
line_comment:
- meta_scope: comment.line.risc
- match: $
pop: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment