Skip to content

epp: add basic support - #10

Open
lollipopman wants to merge 1 commit into
smoeding:mainfrom
lollipopman:epp
Open

lollipopman wants to merge 1 commit into
smoeding:mainfrom
lollipopman:epp

Conversation

@lollipopman

Copy link
Copy Markdown
Contributor

Add basic epp support by allowing lamda style parameter lists at the beginning of a source file. The downside of this change is that it would allow the same syntax in a regular Puppet source file, where the syntax would be illegal.

An alternative approach would be to generate two grammar's from a common subset. This approach is taken by
https://github.com/tree-sitter/tree-sitter-typescript.

That approach adds a fair bit of complexity, but I'm happy to take it on, if you don't care for this approach.

Add basic epp support by allowing lamda style parameter lists at the
beginning of a source file. The downside of this change is that it would
allow the same syntax in a regular Puppet source file, where the syntax
would be illegal.

An alternative approach would be to generate two grammar's from a common
subset. This approach is taken by
https://github.com/tree-sitter/tree-sitter-typescript.

That approach adds a fair bit of complexity, but I'm happy to take it
on, if you don't care for this approach.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant