Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added yuck language support (for eww) #6064

Merged

Conversation

Philipp-M
Copy link
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
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
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
Member

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

@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