Semantic tokens sample
This is a rdl simple semantic tokens provider.
How to run
Type ctrl+shift+p, search for Preferences: Open User Settigs (JSON), and add the following:
"editor.semanticTokenColorCustomizations": {
"enabled": true, // enable for all themes
"rules": {
"*.static":{
"foreground": "#ff0000"
},
"register": {
"foreground": "#645deb"
},
"field": {
"foreground": "#e3d3e1"
},
"block": {
"foreground": "#329ba9"
},
"subblock": {
"foreground": "#783bdb"
},
"field_defaults": {
"foreground": "#dbae3b"
},
"register_defaults": {
"foreground": "#0f6109"
},
"processing_flags": {
"foreground": "#dc86cf"
},
"set_last_version": {
"foreground": "#3bb2d9"
},
"set_last_rtl_crc": {
"foreground": "#f15996"
},
}
}
| |