let mut res = Vec::new();
for node in file.syntax().descendants() {
let tag = match node.kind() {
- ERROR => "error",
COMMENT | DOC_COMMENT => "comment",
STRING | RAW_STRING | RAW_BYTE_STRING | BYTE_STRING => "string",
ATTR => "attribute",
[string, vscode.TextEditorDecorationType]
> = [
['background', decor('#3F3F3F')],
- [
- 'error',
- vscode.window.createTextEditorDecorationType({
- borderColor: 'red',
- borderStyle: 'none none dashed none'
- })
- ],
['comment', decor('#7F9F7F')],
['string', decor('#CC9393')],
['keyword', decor('#F0DFAF')],