terror / terror/treesitter.run

Highlight injected languages

Open
#227 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.