terror / terror/treesitter.run
Highlight injected languages
Open
Nobody has claimed this yet.
area: editor
area: grammars
enhancement
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 0
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 184
Description
Parse and highlight injected languages such as JavaScript in Svelte <script> blocks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the playground's existing parsing and syntax-highlighting entry points for Svelte content and JavaScript blocks. Determine how injected languages are currently represented, then verify that JavaScript inside <script> blocks is parsed and highlighted distinctly from the surrounding Svelte content. The payload names no files or tests, so identify the relevant coverage before implementing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100