Specify style tags within the grammar
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
Read the Lezer grammar and highlighting setup, using the linked lezer-json grammar and styleTags example as references. Determine how lezer-clojure can expose its style tags through the grammar, then verify that consumers can use them without depending on clojure-mode; the issue does not name repository files or tests.
Written by the indexing model from the issue text.
Description
Hi there,
First off, thanks everyone for your work on this excellent library!
Lezer added support for specifying default props within the grammar file using @external propSource.
As far as I understand this enables you to declare the syntax highlighting within the lezer grammar itself.
For example lezer-json defines an @external propSource linking to these styleTags.
It would be great if lezer-clojure did something similar. Right now you need to pull in the clojure-mode package to grab the style tags.
For our use case, nothing in clojure-mode is particularly applicable except for the style tags.
If this sounds like a reasonable request/contribution, I'd be happy to draft up a PR :)
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from nextjournal/lezer-clojure
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nextjournal/lezer-clojure#25 ·
All issues in nextjournal/lezer-clojure
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tencent-connect/dsh-qqbot#148 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Javis603/token-monitor#1861 · 1 comment ·
Maintainers usually reply within 1 day