From 1fb84dbf5c6e5b700cdb8b51b1043aed10cdc716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Mon, 25 Dec 2023 21:04:54 +0400 Subject: [PATCH] docs: fix autocomplete commands Fix #25 --- website/pages/docs/getting-started.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/website/pages/docs/getting-started.mdx b/website/pages/docs/getting-started.mdx index ae6caab..97173ba 100644 --- a/website/pages/docs/getting-started.mdx +++ b/website/pages/docs/getting-started.mdx @@ -10,7 +10,6 @@ import { Steps } from "nextra/components"; npm i react-twc ``` - ### Setup autocompletion in your editor You can enable Tailwind autocompletion inside `twc` using the steps below: @@ -26,7 +25,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below: { "tailwindCSS.experimental.classRegex": [ "twc\\.[^`]+`([^`]*)`", - "twc\\(.*?\\).*?`([^)]*)", + "twc\\(.*?\\).*?`([^`]*)", ["twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], ["twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] ] @@ -47,7 +46,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below: experimental = { classRegex = { "twc\\.[^`]+`([^`]*)`", - "twc\\(.*?\\).*?`([^)]*)", + "twc\\(.*?\\).*?`([^`]*)", { "twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)" }, { "twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)" } }, @@ -71,7 +70,7 @@ You can enable Tailwind autocompletion inside `twc` using the steps below: "experimental": { "classRegex": [ "twc\\.[^`]+`([^`]*)`", - "twc\\(.*?\\).*?`([^)]*)", + "twc\\(.*?\\).*?`([^`]*)", ["twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], ["twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] ]