Skip to content

Add hyperscript support, enable 'key: value' style js code #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ntilwalli
Copy link

This is a simple regex update to enable autocomplete support for hyperscript. Previously only class="foo" or className="foo", would activate the autocomplete, with this PR class:"foo", class: "foo", className:"foo" and className: "foo" also activate autocomplete.

@ntilwalli ntilwalli changed the title Add hyperscript support, enable 'key: value' style js code as well Add hyperscript support, enable 'key: value' style js code Sep 22, 2020
@bradlc
Copy link
Contributor

bradlc commented Jan 8, 2021

Hey @ntilwalli. Thank you, but I think for now I'd like to keep the built-in support to things that look like HTML class attributes (i.e. they use = to separate the key and value).

You could perhaps enable support for this syntax by using the experimental.classRegex setting. Here's a basic example:

"tailwindCSS.experimental.classRegex": [
  "\\sclass:\\s*\"([^\"]*)\""
]

@bradlc bradlc closed this Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants