Skip to content

Instantly share code, notes, and snippets.

@mathuin
Created August 31, 2016 18:36
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 mathuin/b6835e553f784ac290381f14caa4bc83 to your computer and use it in GitHub Desktop.
Save mathuin/b6835e553f784ac290381f14caa4bc83 to your computer and use it in GitHub Desktop.
'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