I’m working with the KickAssembler Package. I want to display the jump instructions (jsr, jmp, bne, etc.) in red. I’ve been scouring the internet for days but haven’t found a solution yet. Can I get help here, please.
Kickassembler Keywords Color change
deathaxe
#2
In general syntax highlighting is performed in 2 steps:
- text is parsed with rules, defined in a syntax definition (.sublime-syntax / .tmLanguage), which assignes
scope
names to tokens (keywords, constants, operators, …). - color schemes (.sublime-color-scheme) assign colors to scope selectors. A scope selector is a query which applies to one or multiple
scope
s.
Kick Assembler package ships with KickAssembler (C64).tmLanguage, which assignes keyword.control
scope to jsr, jmp, etc.
So what you most likely want, is to customize your color scheme to apply desired color.
- Run UI: Customize Color Scheme from Command Palette
- in the right view add required (syntax-specific?) rules
{
"variables": {
},
"globals": {
},
"rules": [
{
"scope": "source.assembly.kickassembler keyword.control",
"foreground": "red",
},
]
}
To learn more about related topics, refer to
0 Likes