Skip to content

Commit f8fa83e

Browse files
authored
Merge pull request #7 from dwkns/master
Detect 'class' attribute in React components.
2 parents c65ecf7 + 2f89b04 commit f8fa83e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tailwind_autocomplete.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def on_query_completions(self, view, prefix, locations):
4040
if matchJSString:
4141
if len(parts) > 1 and parts[-2].strip().endswith("className"):
4242
return self.class_completions
43+
if len(parts) > 1 and parts[-2].strip().endswith("class"):
44+
return self.class_completions
4345

4446
return []
4547

0 commit comments

Comments
 (0)