Skip to content

Added yuck language support (for eww) - #6064

Merged
the-mikedavis merged 2 commits into
helix-editor:masterfrom
Philipp-M:add-yuck-language-support
Feb 20, 2023
Merged

Added yuck language support (for eww)#6064
the-mikedavis merged 2 commits into
helix-editor:masterfrom
Philipp-M:add-yuck-language-support

Conversation

@Philipp-M

Copy link
Copy Markdown
Contributor

Adds syntax highlighting support for yuck (DSL for eww). The parser should be complete now and closely follows the original lalrpop parser in eww.

ewwyucktshighlighting

@Philipp-M
Philipp-M force-pushed the add-yuck-language-support branch from 646e29c to 5eb288e Compare February 20, 2023 16:20
@the-mikedavis the-mikedavis added S-waiting-on-review Status: Awaiting review from a maintainer. A-language-support Area: Support for programming/text languages labels Feb 20, 2023
@the-mikedavis

Copy link
Copy Markdown
Member

Can this be covered by an lisp grammar we already include like clojure or scheme instead? Or is the syntax different enough that it needs its own parser?

@Philipp-M

Copy link
Copy Markdown
Contributor Author

Well one thing that makes it indeed different (and more difficult at that, as it's a context-sensitive grammar), is that yuck includes a separate DSL that eww calls "simplexpr" (e.g. {time.date} or stuff inside string interpolation (which is a "simplexpr" as well). "simplexpr" seems to be a mix out of simple general expressions like binary/unary expressions, function calls and json data access.

@the-mikedavis

Copy link
Copy Markdown
Member

Ah yeah, looks like there is string interpolation too which I don't think is supported in the existing lisps we have

Comment thread runtime/queries/yuck/highlights.scm Outdated
Comment thread runtime/queries/yuck/highlights.scm
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
@the-mikedavis
the-mikedavis merged commit b89b2ea into helix-editor:master Feb 20, 2023
@Philipp-M
Philipp-M deleted the add-yuck-language-support branch February 20, 2023 22:50
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-language-support Area: Support for programming/text languages S-waiting-on-review Status: Awaiting review from a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants