From 1b4e2bf9ea4040fb0a94987444bf7cb72e188007 Mon Sep 17 00:00:00 2001 From: Maksym K Date: Mon, 13 May 2024 17:21:40 +0200 Subject: [PATCH] docs: update vscode settings (#46) --- website/pages/docs/getting-started.mdx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/website/pages/docs/getting-started.mdx b/website/pages/docs/getting-started.mdx index e53a6c6..3c7608d 100644 --- a/website/pages/docs/getting-started.mdx +++ b/website/pages/docs/getting-started.mdx @@ -22,14 +22,12 @@ You can enable Tailwind CSS autocompletion inside `twc` using the steps below: 2. Add the following to your [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings): ```json - { - "tailwindCSS.experimental.classRegex": [ - "twc\\.[^`]+`([^`]*)`", - "twc\\(.*?\\).*?`([^`]*)", + "tailwindCSS.experimental.classRegex": [ + "twc\\.[^`]+`([^`]*)`", + "twc\\([^`]*?\\)`([^`]*)`", ["twc\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], - ["twc\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] - ] - } + ["twc\\([^`]*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] + ] ```