observablehq / observablehq/notebook-kit

Syntax highlighting for SQL

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
371
Forks
27
Avg merge
3h 52m
Merged PRs (30d)
1

Description

There’s no @lezer/sql so the built-in Lezer-based highlighting doesn’t support SQL (yet). There is somewhat of a Lezer grammar in @codemirror/lang-sql, but it’s fairly primitive, and not easily usable as a standalone grammar. We should perhaps write our own?

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 examining how the built-in Lezer-based highlighting is wired in notebook-kit and compare the existing grammar in @codemirror/lang-sql. Determine whether a standalone SQL grammar is feasible; done would mean SQL receives built-in syntax highlighting through a supported @lezer/sql-equivalent grammar.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.