Created
August 31, 2016 18:36
-
-
Save mathuin/b6835e553f784ac290381f14caa4bc83 to your computer and use it in GitHub Desktop.
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
'name': 'TIS-100 Assembly' | |
'scopeName': 'source.TIS' | |
'patterns': [ | |
{ | |
'match': '[#].*$' | |
'name': 'comment.line' | |
} | |
{ | |
'match': '\\b(?i:nop|mov|swp|sav|add|sub|neg|jmp|jez|jnz|jgz|jlz|jro)\\b' | |
'name': 'keyword.mnemonic' | |
} | |
{ | |
'match': '\\b(?i:acc|bak|nil|left|right|up|down|any|last)\\b' | |
'name': 'storage.register' | |
} | |
{ | |
'match': '^\\s*\\.?\\w+:\\s*(?=$|;)' | |
'name': 'entity.name.function' | |
} | |
{ | |
'match': '^\\s*\\.?\\w+:\\s*(?=$|;)' | |
'name': 'entity.name.function' | |
} | |
{ | |
'match': '\\b[0-9]+d?\\b' | |
'name': 'constant.numeric.dec' | |
} | |
] | |
'scopeName': 'source.asm.TIS' | |
'firstLineMatch': '@0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment