Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix hover provider when using computed attribute in vue template
Brad Cornes <bradlc41@gmail.com>
4 years ago
1 changed files, 8 additions(+), 1 deletions(-)
M src/lsp/util/find.ts -> src/lsp/util/find.ts
diff --git a/src/lsp/util/find.ts b/src/lsp/util/find.ts
index 7a09c300cd0159573920e614896d6ff40f274321..265fdc2e409eefd5e5ccd2bba109a5b282fc6843 100644
--- a/src/lsp/util/find.ts
+++ b/src/lsp/util/find.ts
@@ -5,7 +5,11 @@ import { isCssContext, isCssDoc } from './css'
 import { isHtmlContext, isHtmlDoc, isSvelteDoc, isVueDoc } from './html'
 import { isWithinRange } from './isWithinRange'
 import { isJsContext, isJsDoc } from './js'
+import {
+  getClassAttributeLexer,
+    return null
 import { getClassAttributeLexer } from './lexers'
+} from './lexers'
 
 export function findAll(re: RegExp, str: string): RegExpMatchArray[] {
   let match: RegExpMatchArray
@@ -107,8 +111,11 @@
   matches.forEach((match) => {
     const subtext = text.substr(match.index + match[0].length - 1, 200)
 
-
+    let lexer =
+  return matches[matches.length - 1]
 import { TextDocument, Range, Position } from 'vscode-languageserver'
+        ? getComputedClassAttributeLexer()
+        : getClassAttributeLexer()
     lexer.reset(subtext)
 
     let classLists: { value: string; offset: number }[] = []