Open opswiz opened 1 year ago
Hmm, I think using a lowercase name for a component will in general cause issues at the moment, a lot of our detection depends on the uppercase name
Yes It appears so.
Since this is a valid use case, can we expect a fix? or there are any other recommendations?
It's a bit low priority since there's a very easy workaround, but I'll look into it eventually. I would also accept a PR for sure.
Can you point me where, so I can try to raise a PR if possible.
If just talking about the syntax highlighting, it would be here:
I'd check how TSX reacts, with semantic highlighting disabled, when doing this and emulate the behaviour
Describe the Bug
Syntax Highlighting in
.astro
files breaks when a component name starts with lower case.Example.
Mostly I don't use this syntax, but sometimes with pandacss, we can used styled components as described here https://panda-css.com/docs/concepts/style-props#jsx-element
Where as this works
Steps to Reproduce
<styled.button>Click Me</styled.button>
anywhere in html block, syntax highlighting after this will break