%YAML 1.2 --- name: Ain48 file_extensions: - a48s scope: source.ain48asm contexts: main: - match: '(?i)\b(ADD|AEQ|AUT|CESS|CST|DEM|DST|DVD|EI|ET|I|ILG|IMLG|IPLG|IRRV|IVC|LG|MPL|NAM|NCIVC|NCRV|NEC|NEI|NI|NNI|NPI|NUI|PADD|PDEM|PDVD|PI|PILG|PIMLG|PIPLG|PMPL|PRSD|PSTR|RSD|RV|SC|SIM|STR|TSC|UI|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