tree-sitter / tree-sitter-css

CSS grammar for Tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostCSS and/or Tailwind's `@apply` support?

NullVoxPopuli opened this issue · comments

Hello!

I'm using Tailwind, which supports this syntax:

.selector {
  @apply variable-a meta-variable-b lots-of-combined-properties-c;
}

but with the current parser, I get a squiggly on everything after variable-a

Is PostCSS / varying grammars in scope for tree-sitter-css?

I'm encountering this same problem. Treesitter fails to parse anything beyond the first value after the @apply directive.

Screenshot from 2022-01-12 17-16-15

@harrisoncramer @NullVoxPopuli either of you discover fixes or build your own queries for this?

commented

I can't believe that this issue has been open for 2 years