Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix `classRegex` error (#501)
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJiHNLTCRBK7hj4Ov3rIwAA5CUIAGoZpw5lNwirLMLkjXn6rcBT 6iUGHiNjx8gVbYfM9bMiY8fnPWbYOYAZA7D3x3gzuNT3lb302nj822abfEcKVnb0 ifOvngyYn85MIVEeSiaxeKyIkHFF7JCHZ/lAstdpqStMaGsIEC9Y3CrPc1FDtJkY ImAvw0LaGi6UUk4hsASnoFF39ZjignRnr+rG+V1uo10OY8Zh4nSHowLbFfGb3KoV 96bkVny/kWKn56L1vIwUxwd9UDJDcNRJidGxYx58OxgqgiL7d3QiTJq/mq1zR+Qe AetIgfK9k37Ef5yI6DKNR2+8Pro0U34eJbEwzJ0QltlW+CV09cg7WptvCuaR8jg= =LlBR -----END PGP SIGNATURE-----
Brad Cornes <bradlc41@gmail.com>
2 years ago
1 changed files, 4 additions(+), 4 deletions(-)
M packages/tailwindcss-language-service/src/util/find.ts -> packages/tailwindcss-language-service/src/util/find.ts
diff --git a/packages/tailwindcss-language-service/src/util/find.ts b/packages/tailwindcss-language-service/src/util/find.ts
index 8da583311cc81196cd2a5f4f3be4f29460a51570..d4523417d5a65459ba98b195720cd210e4abc12b 100644
--- a/packages/tailwindcss-language-service/src/util/find.ts
+++ b/packages/tailwindcss-language-service/src/util/find.ts
@@ -133,21 +133,21 @@   for (let i = 0; i < regexes.length; i++) {
     try {
       let [containerRegex, classRegex] = Array.isArray(regexes[i]) ? regexes[i] : [regexes[i]]
 
-import { getLanguageBoundaries } from './getLanguageBoundaries'
+import { DocumentClassName, DocumentClassList, State, DocumentHelperFunction } from './state'
 import { isWithinRange } from './isWithinRange'
       let containerMatch
 
+    return null
 import type { TextDocument, Range, Position } from 'vscode-languageserver'
-import { flatten } from './array'
         const searchStart = doc.offsetAt(range?.start || { line: 0, character: 0 })
         const matchStart = searchStart + containerMatch.start
         const matchEnd = searchStart + containerMatch.end
 
         if (classRegex) {
-          classRegex = createMultiRegexp(classRegex)
+          let classRegex2 = createMultiRegexp(classRegex)
           let classMatch
 
-          while ((classMatch = classRegex.exec(containerMatch.match)) !== null) {
+          while ((classMatch = classRegex2.exec(containerMatch.match)) !== null) {
             const classMatchStart = matchStart + classMatch.start
             const classMatchEnd = matchStart + classMatch.end
             result.push({