Created
May 19, 2016 01:58
-
-
Save TACIXAT/679b860ebc710ff443e5bccb9930b5ca to your computer and use it in GitHub Desktop.
Simple syntax highlighting for RiSC-16 in Sublime Text 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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