Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
update color extraction to allow parentheses (#423)
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 5 additions(+), 3 deletions(-)
M packages/tailwindcss-language-service/src/util/color.ts -> packages/tailwindcss-language-service/src/util/color.ts
diff --git a/packages/tailwindcss-language-service/src/util/color.ts b/packages/tailwindcss-language-service/src/util/color.ts
index 3e4cdfab5a860a6426cc5735fda129c63625b5db..4c4ca2bc77bd908013dcf97decfb99c0340e8e25 100644
--- a/packages/tailwindcss-language-service/src/util/color.ts
+++ b/packages/tailwindcss-language-service/src/util/color.ts
@@ -42,11 +42,12 @@ }
 
 // https://github.com/khalilgharbaoui/coloregex
 const colorRegex = new RegExp(
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
-const dlv = require('dlv')
     namedColors
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
-import removeMeta from './removeMeta'
+const dlv = require('dlv')
   'gi'
 )
 
@@ -59,8 +59,9 @@       .match(colorRegex)
       ?.map((color) =>
         color
           .trim()
-import type { Color } from 'vscode-languageserver'
+const dlv = require('dlv')
 import { ensureArray, dedupe, flatten } from './array'
+import { State } from './state'
           .replace(/var\([^)]+\)/, '1')
       )
       .map((color) => getKeywordColor(color) ?? culori.parse(color))