Commit Graph

8 Commits

Author SHA1 Message Date
Michael Netshipise 530fbff65a Simplify comment and raw block patterns to single regex
Remove alias() calls that referenced undefined rules, which
prevented proper node type generation. Use simple regex patterns
instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 21:11:32 +02:00
Michael Netshipise dc9cb74320 Fix grammar to produce queryable nodes
Use seq() with named rules instead of inline regex patterns
to ensure raw_block, template_comment, etc. produce proper
named nodes that can be queried in highlights.scm

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 20:42:49 +02:00
Michael Netshipise 769d8bfc51 Simplify grammar patterns for tree-sitter compatibility
- Use simple regex patterns for comments, raw blocks, embedded languages
- Add support for unquoted import paths
- Use string literals for keyword highlighting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 20:32:14 +02:00
Michael Netshipise 7c37d0b3bc Add @if/@for support in JSON/JS/CSS embedded blocks 2026-01-19 08:41:25 +02:00
Michael Netshipise b6a168a2b6 Fix for loop parsing and add @if/@for in attribute positions 2026-01-19 08:13:00 +02:00
Michael Netshipise 6d858472b2 Add @let statement support 2026-01-19 08:00:36 +02:00
Michael Netshipise f3a7ee0c2e Fix multi-asterisk comments and update highlights
- Support variable asterisk counts: @* *@, @** **@, @*** ***@
- Add template_comment_1, template_comment_2, template_comment_3 rules
- Update highlights.scm to handle all comment variants
- Fix safe_expression highlighting (use node pattern instead of literal)
- Remove invalid :: punctuation rule (inside token())

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 07:54:08 +02:00
Michael Netshipise 56f54d9bcb Initial commit 2026-01-19 06:22:42 +02:00