%YAML 1.2 --- name: Ain48 file_extensions: - a48s scope: source.ain48asm contexts: main: - match: '(?i)\b(P?[SBQ]?(ADD|DEM|DVD|MPL|RSD|SIM|STR)|AEQ|AN|AUT|[SBQ]?(LG|SC)|CESS|CST|DST|(N?[ENUP])?I|ET|P?I[MP]?LG|IRRV|(NC)?(IVC|RV)|NAM|NEC|TSC|VEL)\b' scope: keyword.operator.word.ain48 - match: '(?i)%([a-z0-7]+)\b' scope: variable.register.ain48 - match: '#-?(s[0-5]+|o[0-7]+|b[01]+|x[0-9]+)\b' scope: constant.numeric.ain48 - match: '#imm\[[0-9n]+\]' scope: constant.numeric.ain48 - match: ';' scope: comment push: comments - match: '^[a-zA-Z0-9_-]+:' scope: keyword.control.label.ain48 - match: '\.[a-zA-Z]+' scope: keyword.directive.ain48 comments: - meta_scope: comment - match: '\n' scope: comment pop: true