Skip to content

Specify style tags within the grammar #21

@wavejumper

Description

@wavejumper

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions