1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 11:22:46 +03:00

Add special style for withAttribute in tests

This commit is contained in:
oxalica 2022-12-29 01:08:25 +08:00
parent b65a0c7655
commit 3dac2ebee8
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,21 @@
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -100,7 +100,15 @@
"editor.insertSpaces": true,
"editor.tabSize": 2
}
- }
+ },
+ "semanticTokenScopes": [
+ {
+ "language": "nix",
+ "scopes": {
+ "*.withAttribute": ["markup.underline"]
+ }
+ }
+ ]
},
"devDependencies": {
"@commitlint/cli": "*",

View File

@ -73,6 +73,7 @@ let
highlight link CocSemEscape TSStringEscape
highlight link CocSemUnresolved Error
highlight link CocSemWithAttribute Underlined
highlight link CocSemDelimiterPunctuation TSPunctDelimiter
highlight link CocSemConditionalKeyword Conditional

View File

@ -3,7 +3,13 @@ with pkgs;
let
codium = vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = [ vscode-extensions.jnoortheen.nix-ide ];
vscodeExtensions = [
(vscode-extensions.jnoortheen.nix-ide.overrideAttrs (old: {
patches = old.patches or [] ++ [
./nix-ide-semantic-highlighting.patch
];
}))
];
};
in writeShellScriptBin "codium-test" ''
set -e