mirror of
https://github.com/oxalica/nil.git
synced 2024-11-22 02:55:39 +03:00
Add special style for withAttribute in tests
This commit is contained in:
parent
b65a0c7655
commit
3dac2ebee8
21
dev/nix-ide-semantic-highlighting.patch
Normal file
21
dev/nix-ide-semantic-highlighting.patch
Normal 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": "*",
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user