@enjoys/context-engine 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/codeActions/angular.json +126 -0
- package/data/codeActions/nestjs.json +124 -0
- package/data/codeActions/nextjs.json +198 -0
- package/data/codeActions/react.json +154 -0
- package/data/codeActions/shadcn.json +112 -0
- package/data/codeActions/shell.json +169 -26
- package/data/codeLens/angular.json +22 -0
- package/data/codeLens/nestjs.json +21 -0
- package/data/codeLens/nextjs.json +117 -0
- package/data/codeLens/react.json +89 -0
- package/data/codeLens/shadcn.json +89 -0
- package/data/codeLens/shell.json +59 -17
- package/data/codeLens/tailwindcss.json +56 -0
- package/data/color/angular.json +21 -0
- package/data/color/nestjs.json +18 -0
- package/data/color/nextjs.json +22 -0
- package/data/color/react.json +93 -0
- package/data/color/shadcn.json +66 -0
- package/data/color/shell.json +106 -80
- package/data/commands/angular.json +312 -0
- package/data/commands/manifest.json +5 -0
- package/data/commands/nestjs.json +273 -0
- package/data/commands/nextjs.json +123 -0
- package/data/commands/react.json +210 -0
- package/data/commands/shadcn.json +410 -0
- package/data/commands/shell.json +571 -41
- package/data/completion/angular.json +1490 -0
- package/data/completion/css.json +793 -0
- package/data/completion/nestjs.json +1454 -0
- package/data/completion/nextjs.json +1373 -0
- package/data/completion/react.json +1319 -0
- package/data/completion/shadcn.json +1202 -0
- package/data/completion/shell.json +2446 -510
- package/data/declaration/angular.json +46 -0
- package/data/declaration/nestjs.json +47 -0
- package/data/declaration/nextjs.json +274 -0
- package/data/declaration/react.json +199 -0
- package/data/declaration/shadcn.json +211 -0
- package/data/declaration/shell.json +343 -24
- package/data/declaration/tailwindcss.json +72 -0
- package/data/definition/angular.json +670 -0
- package/data/definition/nestjs.json +684 -0
- package/data/definition/nextjs.json +439 -0
- package/data/definition/react.json +397 -0
- package/data/definition/shadcn.json +99 -0
- package/data/definition/shell.json +820 -0
- package/data/documentHighlight/angular.json +414 -0
- package/data/documentHighlight/css.json +77 -2
- package/data/documentHighlight/nestjs.json +115 -0
- package/data/documentHighlight/nextjs.json +212 -0
- package/data/documentHighlight/react.json +119 -0
- package/data/documentHighlight/shadcn.json +168 -0
- package/data/documentHighlight/shell.json +664 -334
- package/data/documentHighlight/tailwindcss.json +105 -10
- package/data/documentRangeFormatting/angular.json +45 -0
- package/data/documentRangeFormatting/nestjs.json +17 -0
- package/data/documentRangeFormatting/nextjs.json +17 -0
- package/data/documentRangeFormatting/react.json +78 -0
- package/data/documentRangeFormatting/shadcn.json +45 -0
- package/data/documentRangeFormatting/shell.json +120 -53
- package/data/documentSymbol/angular.json +180 -0
- package/data/documentSymbol/nestjs.json +152 -0
- package/data/documentSymbol/nextjs.json +159 -0
- package/data/documentSymbol/react.json +145 -0
- package/data/documentSymbol/shadcn.json +131 -0
- package/data/documentSymbol/shell.json +166 -26
- package/data/documentSymbol/tailwindcss.json +49 -0
- package/data/foldingRange/angular.json +99 -0
- package/data/foldingRange/nestjs.json +26 -0
- package/data/foldingRange/nextjs.json +26 -0
- package/data/foldingRange/react.json +120 -0
- package/data/foldingRange/shadcn.json +93 -0
- package/data/foldingRange/shell.json +106 -46
- package/data/formatting/angular.json +21 -0
- package/data/formatting/nestjs.json +23 -0
- package/data/formatting/nextjs.json +23 -0
- package/data/formatting/react.json +71 -0
- package/data/formatting/shadcn.json +61 -0
- package/data/formatting/shell.json +103 -19
- package/data/hover/angular.json +455 -0
- package/data/hover/css.json +232 -0
- package/data/hover/nestjs.json +296 -0
- package/data/hover/nextjs.json +305 -0
- package/data/hover/react.json +173 -0
- package/data/hover/shadcn.json +450 -0
- package/data/hover/shell.json +684 -75
- package/data/implementation/angular.json +22 -0
- package/data/implementation/nestjs.json +24 -0
- package/data/implementation/nextjs.json +137 -0
- package/data/implementation/react.json +125 -0
- package/data/implementation/shadcn.json +89 -0
- package/data/implementation/shell.json +59 -3
- package/data/inlayHints/angular.json +24 -0
- package/data/inlayHints/nestjs.json +24 -0
- package/data/inlayHints/nextjs.json +143 -0
- package/data/inlayHints/react.json +177 -0
- package/data/inlayHints/shadcn.json +109 -0
- package/data/inlayHints/shell.json +223 -35
- package/data/inlineCompletions/angular.json +135 -0
- package/data/inlineCompletions/nestjs.json +25 -0
- package/data/inlineCompletions/nextjs.json +179 -0
- package/data/inlineCompletions/react.json +203 -0
- package/data/inlineCompletions/shadcn.json +115 -0
- package/data/inlineCompletions/shell.json +185 -35
- package/data/linkedEditingRange/angular.json +23 -0
- package/data/linkedEditingRange/nestjs.json +10 -0
- package/data/linkedEditingRange/nextjs.json +11 -0
- package/data/linkedEditingRange/react.json +75 -0
- package/data/linkedEditingRange/shadcn.json +23 -0
- package/data/linkedEditingRange/shell.json +25 -25
- package/data/links/angular.json +95 -0
- package/data/links/nestjs.json +130 -0
- package/data/links/nextjs.json +91 -0
- package/data/links/react.json +75 -0
- package/data/links/shadcn.json +98 -0
- package/data/links/shell.json +56 -0
- package/data/links/tailwindcss.json +25 -0
- package/data/manifest.json +339 -152
- package/data/onTypeFormatting/angular.json +14 -0
- package/data/onTypeFormatting/nestjs.json +16 -0
- package/data/onTypeFormatting/nextjs.json +17 -0
- package/data/onTypeFormatting/react.json +127 -0
- package/data/onTypeFormatting/shadcn.json +54 -0
- package/data/onTypeFormatting/shell.json +72 -68
- package/data/rangeSemanticTokens/angular.json +140 -0
- package/data/rangeSemanticTokens/nestjs.json +27 -0
- package/data/rangeSemanticTokens/nextjs.json +28 -0
- package/data/rangeSemanticTokens/react.json +216 -0
- package/data/rangeSemanticTokens/shadcn.json +140 -0
- package/data/rangeSemanticTokens/shell.json +247 -69
- package/data/rangeSemanticTokens/tailwindcss.json +99 -8
- package/data/references/angular.json +26 -0
- package/data/references/nestjs.json +24 -0
- package/data/references/nextjs.json +178 -0
- package/data/references/react.json +192 -0
- package/data/references/shadcn.json +101 -0
- package/data/references/shell.json +323 -92
- package/data/references/tailwindcss.json +66 -0
- package/data/rename/angular.json +131 -0
- package/data/rename/nestjs.json +32 -0
- package/data/rename/nextjs.json +31 -0
- package/data/rename/react.json +88 -0
- package/data/rename/shadcn.json +79 -0
- package/data/rename/shell.json +101 -31
- package/data/selectionRange/angular.json +95 -0
- package/data/selectionRange/nestjs.json +21 -0
- package/data/selectionRange/nextjs.json +22 -0
- package/data/selectionRange/react.json +87 -0
- package/data/selectionRange/shadcn.json +89 -0
- package/data/selectionRange/shell.json +65 -35
- package/data/semanticTokens/angular.json +198 -0
- package/data/semanticTokens/nestjs.json +35 -0
- package/data/semanticTokens/nextjs.json +38 -0
- package/data/semanticTokens/react.json +215 -0
- package/data/semanticTokens/shadcn.json +180 -0
- package/data/semanticTokens/shell.json +238 -65
- package/data/signatureHelp/angular.json +182 -0
- package/data/signatureHelp/nestjs.json +128 -0
- package/data/signatureHelp/nextjs.json +127 -0
- package/data/signatureHelp/react.json +281 -0
- package/data/signatureHelp/shadcn.json +237 -0
- package/data/signatureHelp/shell.json +797 -104
- package/data/typeDefinition/angular.json +362 -0
- package/data/typeDefinition/nestjs.json +334 -0
- package/data/typeDefinition/nextjs.json +285 -0
- package/data/typeDefinition/react.json +236 -0
- package/data/typeDefinition/shadcn.json +292 -0
- package/data/typeDefinition/shell.json +104 -40
- package/package.json +1 -1
- package/data/codeActions/bash.json +0 -169
- package/data/codeActions/zsh.json +0 -49
- package/data/codeLens/bash.json +0 -75
- package/data/codeLens/zsh.json +0 -19
- package/data/color/bash.json +0 -100
- package/data/color/zsh.json +0 -80
- package/data/commands/bash.json +0 -102
- package/data/commands/zsh.json +0 -166
- package/data/completion/bash.json +0 -1184
- package/data/completion/zsh.json +0 -973
- package/data/declaration/bash.json +0 -301
- package/data/declaration/zsh.json +0 -205
- package/data/definition/bash.json +0 -565
- package/data/definition/zsh.json +0 -350
- package/data/documentHighlight/bash.json +0 -393
- package/data/documentHighlight/zsh.json +0 -266
- package/data/documentRangeFormatting/bash.json +0 -41
- package/data/documentRangeFormatting/zsh.json +0 -59
- package/data/documentSymbol/bash.json +0 -124
- package/data/documentSymbol/zsh.json +0 -26
- package/data/foldingRange/bash.json +0 -76
- package/data/foldingRange/zsh.json +0 -46
- package/data/formatting/bash.json +0 -88
- package/data/formatting/zsh.json +0 -28
- package/data/hover/bash.json +0 -579
- package/data/hover/zsh.json +0 -96
- package/data/implementation/bash.json +0 -44
- package/data/implementation/zsh.json +0 -41
- package/data/inlayHints/bash.json +0 -207
- package/data/inlayHints/zsh.json +0 -43
- package/data/inlineCompletions/bash.json +0 -155
- package/data/inlineCompletions/zsh.json +0 -17
- package/data/linkedEditingRange/bash.json +0 -25
- package/data/linkedEditingRange/zsh.json +0 -25
- package/data/links/bash.json +0 -56
- package/data/links/zsh.json +0 -15
- package/data/onTypeFormatting/bash.json +0 -68
- package/data/onTypeFormatting/zsh.json +0 -68
- package/data/rangeSemanticTokens/bash.json +0 -90
- package/data/rangeSemanticTokens/zsh.json +0 -76
- package/data/references/bash.json +0 -221
- package/data/references/zsh.json +0 -166
- package/data/rename/bash.json +0 -37
- package/data/rename/zsh.json +0 -31
- package/data/selectionRange/bash.json +0 -35
- package/data/selectionRange/zsh.json +0 -35
- package/data/semanticTokens/bash.json +0 -71
- package/data/semanticTokens/zsh.json +0 -71
- package/data/signatureHelp/bash.json +0 -111
- package/data/signatureHelp/zsh.json +0 -118
- package/data/typeDefinition/bash.json +0 -95
- package/data/typeDefinition/zsh.json +0 -40
package/data/codeLens/shell.json
CHANGED
|
@@ -1,17 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shell",
|
|
3
|
-
"codeLensPatterns": [
|
|
4
|
-
{
|
|
5
|
-
"pattern": "^\\s*(?:function\\s+)?(\\w+)\\s*\\(\\)",
|
|
6
|
-
"captureGroup": 1,
|
|
7
|
-
"title": "function",
|
|
8
|
-
"command": "editor.action.referenceSearch"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"pattern": "^\\s*(\\w+)=",
|
|
12
|
-
"captureGroup": 1,
|
|
13
|
-
"title": "variable",
|
|
14
|
-
"command": "editor.action.referenceSearch"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "shell",
|
|
3
|
+
"codeLensPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "^\\s*(?:function\\s+)?(\\w+)\\s*\\(\\)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"title": "function",
|
|
8
|
+
"command": "editor.action.referenceSearch"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "^\\s*(\\w+)=",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"title": "variable",
|
|
14
|
+
"command": "editor.action.referenceSearch"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "^\\s*function\\s+(\\w+)",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
20
|
+
"title": "Find References",
|
|
21
|
+
"description": "Show all references to this function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"pattern": "^\\s*@test\\s+['\"](.+)['\"]",
|
|
25
|
+
"captureGroup": 1,
|
|
26
|
+
"commandId": "testing.runAtCursor",
|
|
27
|
+
"title": "Run Test",
|
|
28
|
+
"description": "Run this BATS test case"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"pattern": "^\\s*(?:function\\s+)?main\\s*\\(\\s*\\)|^\\s*function\\s+main\\b",
|
|
32
|
+
"captureGroup": 0,
|
|
33
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
34
|
+
"title": "Entry Point",
|
|
35
|
+
"description": "Script main entry point"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"pattern": "^\\s*source\\s+['\"]?([^'\"\\s]+)['\"]?|^\\s*\\.\\s+['\"]?([^'\"\\s]+)['\"]?",
|
|
39
|
+
"captureGroup": 1,
|
|
40
|
+
"commandId": "editor.action.revealDefinition",
|
|
41
|
+
"title": "Open Source",
|
|
42
|
+
"description": "Open the sourced file"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"pattern": "^\\s*trap\\s+['\"]?\\w+['\"]?\\s+(\\w+)",
|
|
46
|
+
"captureGroup": 1,
|
|
47
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
48
|
+
"title": "Trap Handler",
|
|
49
|
+
"description": "Signal trap handler"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"pattern": "^\\s*complete\\s+.*-F\\s+(\\w+)\\s+(\\w+)",
|
|
53
|
+
"captureGroup": 2,
|
|
54
|
+
"commandId": "editor.action.referenceSearch.trigger",
|
|
55
|
+
"title": "Completion",
|
|
56
|
+
"description": "Programmable completion for this command"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -42,6 +42,62 @@
|
|
|
42
42
|
"commandId": "tailwindcss.openConfig",
|
|
43
43
|
"title": "Open config: ${1}",
|
|
44
44
|
"description": "Opens the referenced Tailwind configuration file."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"pattern": "@screen\\s+(\\w+)\\s*\\{",
|
|
48
|
+
"captureGroup": 1,
|
|
49
|
+
"commandId": "tailwindcss.showScreenBreakpoint",
|
|
50
|
+
"title": "Screen: ${1}",
|
|
51
|
+
"description": "Shows the resolved min-width breakpoint value for the @screen directive."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"pattern": "@variants\\s+([\\w,\\s]+)\\s*\\{",
|
|
55
|
+
"captureGroup": 1,
|
|
56
|
+
"commandId": "tailwindcss.showVariantInfo",
|
|
57
|
+
"title": "Variants: ${1}",
|
|
58
|
+
"description": "Shows information about the generated variants for the contained utilities."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"pattern": "@responsive\\s*\\{",
|
|
62
|
+
"captureGroup": 0,
|
|
63
|
+
"commandId": "tailwindcss.showResponsiveInfo",
|
|
64
|
+
"title": "Responsive variants",
|
|
65
|
+
"description": "Shows the responsive breakpoint variants generated for contained utilities."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"pattern": "addUtilities\\s*\\(",
|
|
69
|
+
"captureGroup": 0,
|
|
70
|
+
"commandId": "tailwindcss.showPluginUtilities",
|
|
71
|
+
"title": "Plugin: custom utilities",
|
|
72
|
+
"description": "Shows the custom utility classes registered by this plugin API call."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"pattern": "addComponents\\s*\\(",
|
|
76
|
+
"captureGroup": 0,
|
|
77
|
+
"commandId": "tailwindcss.showPluginComponents",
|
|
78
|
+
"title": "Plugin: custom components",
|
|
79
|
+
"description": "Shows the custom component classes registered by this plugin API call."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"pattern": "@keyframes\\s+([\\w-]+)\\s*\\{",
|
|
83
|
+
"captureGroup": 1,
|
|
84
|
+
"commandId": "tailwindcss.showKeyframesInfo",
|
|
85
|
+
"title": "Keyframes: ${1}",
|
|
86
|
+
"description": "Shows the animation keyframe steps and properties."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"pattern": "className\\s*=\\s*[{\"']([^}\"']+)[}\"']",
|
|
90
|
+
"captureGroup": 1,
|
|
91
|
+
"commandId": "tailwindcss.showClassCount",
|
|
92
|
+
"title": "${count} classes",
|
|
93
|
+
"description": "Displays the count of Tailwind utility classes in React className attributes."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"pattern": "@source\\s+['\"]([^'\"]+)['\"]\\s*;",
|
|
97
|
+
"captureGroup": 1,
|
|
98
|
+
"commandId": "tailwindcss.openSourceFile",
|
|
99
|
+
"title": "Source: ${1}",
|
|
100
|
+
"description": "Opens the source file referenced by the @source directive."
|
|
45
101
|
}
|
|
46
102
|
]
|
|
47
103
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "angular",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{ "pattern": "#([0-9a-fA-F]{8})\\b", "captureGroup": 1, "format": "hex" },
|
|
5
|
+
{ "pattern": "#([0-9a-fA-F]{6})\\b", "captureGroup": 1, "format": "hex" },
|
|
6
|
+
{ "pattern": "#([0-9a-fA-F]{3})\\b", "captureGroup": 1, "format": "hex" },
|
|
7
|
+
{ "pattern": "rgba?\\(\\s*(\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}(?:\\s*,\\s*[\\d.]+)?)\\s*\\)", "captureGroup": 1, "format": "rgb" },
|
|
8
|
+
{ "pattern": "hsla?\\(\\s*(\\d{1,3}\\s*,\\s*\\d{1,3}%\\s*,\\s*\\d{1,3}%(?:\\s*,\\s*[\\d.]+)?)\\s*\\)", "captureGroup": 1, "format": "hsl" },
|
|
9
|
+
{ "pattern": "oklch\\(\\s*([\\d.]+%?\\s+[\\d.]+\\s+[\\d.]+(?:\\s*/\\s*[\\d.]+%?)?)\\s*\\)", "captureGroup": 1, "format": "oklch" },
|
|
10
|
+
{ "pattern": "var\\(\\s*(--[\\w-]+)\\s*\\)", "captureGroup": 1, "format": "hex" },
|
|
11
|
+
{ "pattern": "color\\(\\s*(\\w+\\s+[\\d.]+\\s+[\\d.]+\\s+[\\d.]+(?:\\s*/\\s*[\\d.]+)?)\\s*\\)", "captureGroup": 1, "format": "rgb" }
|
|
12
|
+
],
|
|
13
|
+
"namedColors": {
|
|
14
|
+
"red": "#ff0000",
|
|
15
|
+
"blue": "#0000ff",
|
|
16
|
+
"green": "#008000",
|
|
17
|
+
"white": "#ffffff",
|
|
18
|
+
"black": "#000000",
|
|
19
|
+
"gray": "#808080"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "nestjs",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{ "pattern": "#([0-9a-fA-F]{3})\\b", "format": "hex3", "description": "3-digit hex color" },
|
|
5
|
+
{ "pattern": "#([0-9a-fA-F]{6})\\b", "format": "hex6", "description": "6-digit hex color" },
|
|
6
|
+
{ "pattern": "#([0-9a-fA-F]{8})\\b", "format": "hex8", "description": "8-digit hex with alpha" },
|
|
7
|
+
{ "pattern": "rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)", "format": "rgb", "description": "RGB color" },
|
|
8
|
+
{ "pattern": "rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*([\\d.]+)\\)", "format": "rgba", "description": "RGBA color" },
|
|
9
|
+
{ "pattern": "hsl\\((\\d+),\\s*(\\d+)%?,\\s*(\\d+)%?\\)", "format": "hsl", "description": "HSL color" },
|
|
10
|
+
{ "pattern": "hsla\\((\\d+),\\s*(\\d+)%?,\\s*(\\d+)%?,\\s*([\\d.]+)\\)", "format": "hsla", "description": "HSLA color" }
|
|
11
|
+
],
|
|
12
|
+
"colorPresentations": ["hex", "rgb", "rgba", "hsl", "hsla"],
|
|
13
|
+
"namedColors": {
|
|
14
|
+
"white": { "red": 1, "green": 1, "blue": 1, "alpha": 1 },
|
|
15
|
+
"black": { "red": 0, "green": 0, "blue": 0, "alpha": 1 },
|
|
16
|
+
"transparent": { "red": 0, "green": 0, "blue": 0, "alpha": 0 }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "nextjs",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{ "pattern": "#([0-9a-fA-F]{3})\\b", "format": "hex3", "description": "3-digit hex color" },
|
|
5
|
+
{ "pattern": "#([0-9a-fA-F]{6})\\b", "format": "hex6", "description": "6-digit hex color" },
|
|
6
|
+
{ "pattern": "#([0-9a-fA-F]{8})\\b", "format": "hex8", "description": "8-digit hex with alpha" },
|
|
7
|
+
{ "pattern": "rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)", "format": "rgb", "description": "RGB color" },
|
|
8
|
+
{ "pattern": "rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*([\\d.]+)\\)", "format": "rgba", "description": "RGBA color" },
|
|
9
|
+
{ "pattern": "hsl\\((\\d+),\\s*(\\d+)%?,\\s*(\\d+)%?\\)", "format": "hsl", "description": "HSL color" },
|
|
10
|
+
{ "pattern": "hsla\\((\\d+),\\s*(\\d+)%?,\\s*(\\d+)%?,\\s*([\\d.]+)\\)", "format": "hsla", "description": "HSLA color" },
|
|
11
|
+
{ "pattern": "oklch\\(([\\d.]+%?)\\s+([\\d.]+)\\s+([\\d.]+)\\)", "format": "oklch", "description": "OKLCH color" }
|
|
12
|
+
],
|
|
13
|
+
"colorPresentations": ["hex", "rgb", "rgba", "hsl", "hsla"],
|
|
14
|
+
"namedColors": {
|
|
15
|
+
"white": { "red": 1, "green": 1, "blue": 1, "alpha": 1 },
|
|
16
|
+
"black": { "red": 0, "green": 0, "blue": 0, "alpha": 1 },
|
|
17
|
+
"red": { "red": 1, "green": 0, "blue": 0, "alpha": 1 },
|
|
18
|
+
"green": { "red": 0, "green": 0.502, "blue": 0, "alpha": 1 },
|
|
19
|
+
"blue": { "red": 0, "green": 0, "blue": 1, "alpha": 1 },
|
|
20
|
+
"transparent": { "red": 0, "green": 0, "blue": 0, "alpha": 0 }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "react",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "(?:color|backgroundColor|borderColor|outlineColor|textDecorationColor|fill|stroke)\\s*:\\s*['\"]?(#[0-9a-fA-F]{3,8})['\"]?",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"description": "Hex color in JSX style props"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"pattern": "(?:color|backgroundColor|borderColor|outlineColor|fill|stroke)\\s*:\\s*['\"]?(rgb\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*\\))['\"]?",
|
|
11
|
+
"captureGroup": 1,
|
|
12
|
+
"description": "RGB color in JSX style props"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"pattern": "(?:color|backgroundColor|borderColor|outlineColor|fill|stroke)\\s*:\\s*['\"]?(rgba\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*[0-9.]+\\s*\\))['\"]?",
|
|
16
|
+
"captureGroup": 1,
|
|
17
|
+
"description": "RGBA color in JSX style props"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"pattern": "(?:color|backgroundColor|borderColor|outlineColor|fill|stroke)\\s*:\\s*['\"]?(hsl\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}%\\s*,\\s*\\d{1,3}%\\s*\\))['\"]?",
|
|
21
|
+
"captureGroup": 1,
|
|
22
|
+
"description": "HSL color in JSX style props"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"pattern": "(?:color|backgroundColor|borderColor|outlineColor|fill|stroke)\\s*:\\s*['\"]?(hsla\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}%\\s*,\\s*\\d{1,3}%\\s*,\\s*[0-9.]+\\s*\\))['\"]?",
|
|
26
|
+
"captureGroup": 1,
|
|
27
|
+
"description": "HSLA color in JSX style props"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"pattern": "styled\\.[a-z]+`[^`]*(?:color|background|border-color|fill|stroke)\\s*:\\s*(#[0-9a-fA-F]{3,8})",
|
|
31
|
+
"captureGroup": 1,
|
|
32
|
+
"description": "Hex color in styled-components template literal"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "styled\\.[a-z]+`[^`]*(?:color|background|border-color|fill|stroke)\\s*:\\s*(rgb(?:a)?\\([^)]+\\))",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"description": "RGB/RGBA color in styled-components"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"pattern": "css`[^`]*(?:color|background|border-color|fill|stroke)\\s*:\\s*(#[0-9a-fA-F]{3,8})",
|
|
41
|
+
"captureGroup": 1,
|
|
42
|
+
"description": "Hex color in CSS-in-JS css tagged template"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"pattern": "css`[^`]*(?:color|background|border-color|fill|stroke)\\s*:\\s*(rgb(?:a)?\\([^)]+\\))",
|
|
46
|
+
"captureGroup": 1,
|
|
47
|
+
"description": "RGB/RGBA color in CSS-in-JS css tagged template"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"pattern": "(?:theme|colors|palette)\\.[a-zA-Z.]+\\s*[=:]\\s*['\"]?(#[0-9a-fA-F]{3,8})['\"]?",
|
|
51
|
+
"captureGroup": 1,
|
|
52
|
+
"description": "Hex color in theme/palette configuration"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"colorPresentations": [
|
|
56
|
+
{
|
|
57
|
+
"format": "hex",
|
|
58
|
+
"pattern": "#[0-9a-fA-F]{6}",
|
|
59
|
+
"description": "6-digit hex color"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"format": "hex_short",
|
|
63
|
+
"pattern": "#[0-9a-fA-F]{3}",
|
|
64
|
+
"description": "3-digit shorthand hex color"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"format": "hex_alpha",
|
|
68
|
+
"pattern": "#[0-9a-fA-F]{8}",
|
|
69
|
+
"description": "8-digit hex color with alpha"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"format": "rgb",
|
|
73
|
+
"pattern": "rgb\\(\\d{1,3},\\s*\\d{1,3},\\s*\\d{1,3}\\)",
|
|
74
|
+
"description": "CSS RGB color"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"format": "rgba",
|
|
78
|
+
"pattern": "rgba\\(\\d{1,3},\\s*\\d{1,3},\\s*\\d{1,3},\\s*[0-9.]+\\)",
|
|
79
|
+
"description": "CSS RGBA color with alpha"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"format": "hsl",
|
|
83
|
+
"pattern": "hsl\\(\\d{1,3},\\s*\\d{1,3}%,\\s*\\d{1,3}%\\)",
|
|
84
|
+
"description": "CSS HSL color"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"format": "hsla",
|
|
88
|
+
"pattern": "hsla\\(\\d{1,3},\\s*\\d{1,3}%,\\s*\\d{1,3}%,\\s*[0-9.]+\\)",
|
|
89
|
+
"description": "CSS HSLA color with alpha"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"namedColors": {}
|
|
93
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "shadcn",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "hsl\\(var\\(--([\\w-]+)\\)\\)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"format": "hsl"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"pattern": "#([0-9a-fA-F]{8})\\b",
|
|
11
|
+
"captureGroup": 0,
|
|
12
|
+
"format": "hex"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"pattern": "#([0-9a-fA-F]{6})\\b",
|
|
16
|
+
"captureGroup": 0,
|
|
17
|
+
"format": "hex"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"pattern": "#([0-9a-fA-F]{3})\\b",
|
|
21
|
+
"captureGroup": 0,
|
|
22
|
+
"format": "hex"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"pattern": "rgba?\\(([^)]+)\\)",
|
|
26
|
+
"captureGroup": 1,
|
|
27
|
+
"format": "rgb"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"pattern": "hsla?\\(([^)]+)\\)",
|
|
31
|
+
"captureGroup": 1,
|
|
32
|
+
"format": "hsl"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"pattern": "oklch\\(([^)]+)\\)",
|
|
36
|
+
"captureGroup": 1,
|
|
37
|
+
"format": "oklch"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"pattern": "(?:text|bg|border|ring|accent|fill|stroke|outline|shadow|from|to|via)-(primary|secondary|muted|destructive|accent|popover|card|background|foreground|border|input|ring)(?:\\b|/)",
|
|
41
|
+
"captureGroup": 1,
|
|
42
|
+
"format": "hsl"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"namedColors": {
|
|
46
|
+
"background": "hsl(var(--background))",
|
|
47
|
+
"foreground": "hsl(var(--foreground))",
|
|
48
|
+
"primary": "hsl(var(--primary))",
|
|
49
|
+
"primary-foreground": "hsl(var(--primary-foreground))",
|
|
50
|
+
"secondary": "hsl(var(--secondary))",
|
|
51
|
+
"secondary-foreground": "hsl(var(--secondary-foreground))",
|
|
52
|
+
"muted": "hsl(var(--muted))",
|
|
53
|
+
"muted-foreground": "hsl(var(--muted-foreground))",
|
|
54
|
+
"accent": "hsl(var(--accent))",
|
|
55
|
+
"accent-foreground": "hsl(var(--accent-foreground))",
|
|
56
|
+
"destructive": "hsl(var(--destructive))",
|
|
57
|
+
"destructive-foreground": "hsl(var(--destructive-foreground))",
|
|
58
|
+
"border": "hsl(var(--border))",
|
|
59
|
+
"input": "hsl(var(--input))",
|
|
60
|
+
"ring": "hsl(var(--ring))",
|
|
61
|
+
"card": "hsl(var(--card))",
|
|
62
|
+
"card-foreground": "hsl(var(--card-foreground))",
|
|
63
|
+
"popover": "hsl(var(--popover))",
|
|
64
|
+
"popover-foreground": "hsl(var(--popover-foreground))"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/data/color/shell.json
CHANGED
|
@@ -1,80 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shell",
|
|
3
|
-
"colorPatterns": [
|
|
4
|
-
{
|
|
5
|
-
"pattern": "\\\\033\\[(\\d+;)*\\d+m|\\\\e\\[(\\d+;)*\\d+m|\\\\x1b\\[(\\d+;)*\\d+m",
|
|
6
|
-
"format": "ansi_escape",
|
|
7
|
-
"description": "ANSI escape code color sequence"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"pattern": "tput\\s+setaf\\s+(\\d+)",
|
|
11
|
-
"format": "tput_setaf",
|
|
12
|
-
"description": "tput foreground color"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"pattern": "tput\\s+setab\\s+(\\d+)",
|
|
16
|
-
"format": "tput_setab",
|
|
17
|
-
"description": "tput background color"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"pattern": "[\"']#([0-9a-fA-F]{6})[\"']",
|
|
21
|
-
"format": "hex6_string",
|
|
22
|
-
"description": "Hex color in string literal"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"colorPresentations": [
|
|
26
|
-
"ansi_escape",
|
|
27
|
-
"tput",
|
|
28
|
-
"hex"
|
|
29
|
-
],
|
|
30
|
-
"namedColors": {
|
|
31
|
-
"black": {
|
|
32
|
-
"red": 0,
|
|
33
|
-
"green": 0,
|
|
34
|
-
"blue": 0,
|
|
35
|
-
"alpha": 1
|
|
36
|
-
},
|
|
37
|
-
"red": {
|
|
38
|
-
"red": 0.804,
|
|
39
|
-
"green": 0,
|
|
40
|
-
"blue": 0,
|
|
41
|
-
"alpha": 1
|
|
42
|
-
},
|
|
43
|
-
"green": {
|
|
44
|
-
"red": 0,
|
|
45
|
-
"green": 0.804,
|
|
46
|
-
"blue": 0,
|
|
47
|
-
"alpha": 1
|
|
48
|
-
},
|
|
49
|
-
"yellow": {
|
|
50
|
-
"red": 0.804,
|
|
51
|
-
"green": 0.804,
|
|
52
|
-
"blue": 0,
|
|
53
|
-
"alpha": 1
|
|
54
|
-
},
|
|
55
|
-
"blue": {
|
|
56
|
-
"red": 0,
|
|
57
|
-
"green": 0,
|
|
58
|
-
"blue": 0.804,
|
|
59
|
-
"alpha": 1
|
|
60
|
-
},
|
|
61
|
-
"magenta": {
|
|
62
|
-
"red": 0.804,
|
|
63
|
-
"green": 0,
|
|
64
|
-
"blue": 0.804,
|
|
65
|
-
"alpha": 1
|
|
66
|
-
},
|
|
67
|
-
"cyan": {
|
|
68
|
-
"red": 0,
|
|
69
|
-
"green": 0.804,
|
|
70
|
-
"blue": 0.804,
|
|
71
|
-
"alpha": 1
|
|
72
|
-
},
|
|
73
|
-
"white": {
|
|
74
|
-
"red": 0.804,
|
|
75
|
-
"green": 0.804,
|
|
76
|
-
"blue": 0.804,
|
|
77
|
-
"alpha": 1
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "shell",
|
|
3
|
+
"colorPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "\\\\033\\[(\\d+;)*\\d+m|\\\\e\\[(\\d+;)*\\d+m|\\\\x1b\\[(\\d+;)*\\d+m",
|
|
6
|
+
"format": "ansi_escape",
|
|
7
|
+
"description": "ANSI escape code color sequence"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"pattern": "tput\\s+setaf\\s+(\\d+)",
|
|
11
|
+
"format": "tput_setaf",
|
|
12
|
+
"description": "tput foreground color"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"pattern": "tput\\s+setab\\s+(\\d+)",
|
|
16
|
+
"format": "tput_setab",
|
|
17
|
+
"description": "tput background color"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"pattern": "[\"']#([0-9a-fA-F]{6})[\"']",
|
|
21
|
+
"format": "hex6_string",
|
|
22
|
+
"description": "Hex color in string literal"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"colorPresentations": [
|
|
26
|
+
"ansi_escape",
|
|
27
|
+
"tput",
|
|
28
|
+
"hex"
|
|
29
|
+
],
|
|
30
|
+
"namedColors": {
|
|
31
|
+
"black": {
|
|
32
|
+
"red": 0,
|
|
33
|
+
"green": 0,
|
|
34
|
+
"blue": 0,
|
|
35
|
+
"alpha": 1
|
|
36
|
+
},
|
|
37
|
+
"red": {
|
|
38
|
+
"red": 0.804,
|
|
39
|
+
"green": 0,
|
|
40
|
+
"blue": 0,
|
|
41
|
+
"alpha": 1
|
|
42
|
+
},
|
|
43
|
+
"green": {
|
|
44
|
+
"red": 0,
|
|
45
|
+
"green": 0.804,
|
|
46
|
+
"blue": 0,
|
|
47
|
+
"alpha": 1
|
|
48
|
+
},
|
|
49
|
+
"yellow": {
|
|
50
|
+
"red": 0.804,
|
|
51
|
+
"green": 0.804,
|
|
52
|
+
"blue": 0,
|
|
53
|
+
"alpha": 1
|
|
54
|
+
},
|
|
55
|
+
"blue": {
|
|
56
|
+
"red": 0,
|
|
57
|
+
"green": 0,
|
|
58
|
+
"blue": 0.804,
|
|
59
|
+
"alpha": 1
|
|
60
|
+
},
|
|
61
|
+
"magenta": {
|
|
62
|
+
"red": 0.804,
|
|
63
|
+
"green": 0,
|
|
64
|
+
"blue": 0.804,
|
|
65
|
+
"alpha": 1
|
|
66
|
+
},
|
|
67
|
+
"cyan": {
|
|
68
|
+
"red": 0,
|
|
69
|
+
"green": 0.804,
|
|
70
|
+
"blue": 0.804,
|
|
71
|
+
"alpha": 1
|
|
72
|
+
},
|
|
73
|
+
"white": {
|
|
74
|
+
"red": 0.804,
|
|
75
|
+
"green": 0.804,
|
|
76
|
+
"blue": 0.804,
|
|
77
|
+
"alpha": 1
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"ansiColorCodes": {
|
|
81
|
+
"30": "black",
|
|
82
|
+
"31": "red",
|
|
83
|
+
"32": "green",
|
|
84
|
+
"33": "yellow",
|
|
85
|
+
"34": "blue",
|
|
86
|
+
"35": "magenta",
|
|
87
|
+
"36": "cyan",
|
|
88
|
+
"37": "white",
|
|
89
|
+
"40": "bg black",
|
|
90
|
+
"41": "bg red",
|
|
91
|
+
"42": "bg green",
|
|
92
|
+
"43": "bg yellow",
|
|
93
|
+
"44": "bg blue",
|
|
94
|
+
"45": "bg magenta",
|
|
95
|
+
"46": "bg cyan",
|
|
96
|
+
"47": "bg white",
|
|
97
|
+
"90": "bright black",
|
|
98
|
+
"91": "bright red",
|
|
99
|
+
"92": "bright green",
|
|
100
|
+
"93": "bright yellow",
|
|
101
|
+
"94": "bright blue",
|
|
102
|
+
"95": "bright magenta",
|
|
103
|
+
"96": "bright cyan",
|
|
104
|
+
"97": "bright white"
|
|
105
|
+
}
|
|
106
|
+
}
|