Sharp X68000 Disassemblies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.5 KiB

%YAML 1.2
---
name: X68000 HAS assembly
file_extensions: [s, S, has, HAS]
scope: source.s
# https://www.sublimetext.com/docs/3/scope_naming.html#markup
# https://www.sublimetext.com/docs/3/syntax.html
contexts:
main:
- match: \b([ad][0-7]|sp|pc|sr)\b
scope: variable.parameter
- match: \b(b(eq|sr|lt|ge|ne|ra|cs|mi|cc|ls|le|pl)|(cmp|move|sub|add|and|div|swap|clr|or)[qimua]?|[lp]ea|(ls|ro)[rl]|rt[es]|dbra|j(sr|mp)|stop|reset|t?st)(\.[bwls])?\b
scope: keyword.control.s
- match: ^\s*\.(cpu|text|data|include|bss|end|global|quad)\b
scope: storage.type.function
- match: \binclude\b
scope: keyword.control.s
push: include
- match: ^\s*[a-zA-Z_@][a-zA-Z0-9_@]+:\s*
scope: entity.name.function
- match: \@[fb]\b
scope: entity.name.function
- match: \$[0-9a-fA-F]+(\.[lwb])?
scope: constant.numeric.integer.hexadecimal
- match: \b[0-9]+\b(\.[lwb])?
scope: constant.numeric.integer.decimal
- match: \'
push: string
- match: (\*|\;).*$
scope: comment.line
- match: \s*\.d[cs]\.[bwl]\b
scope: support.type
- match: (DOS|IOCS|FEFUNC)\s+_[A-Z0-9_]+
scope: support.constant
- match: \b[a-zA-Z_][a-zA-Z0-9_]+\b
scope: entity.name.function
string:
- meta_scope: string.quoted.single.c
# - match: \\.
# scope: constant.character.escape.c
- match: \'
pop: true
include:
- meta_scope: string.quoted.single.c
- match: $
pop: true