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

Implement __syntax__ pragmas #382

Closed
andychu opened this issue Jun 27, 2019 · 1 comment
Closed

Implement __syntax__ pragmas #382

andychu opened this issue Jun 27, 2019 · 1 comment

Comments

@andychu
Copy link
Contributor

andychu commented Jun 27, 2019

important:

  • oil-paren -- ( is for expression mode
  • oil-brace -- { is an operator
  • oil-set -- take over set keyword for assignment. legacy use is builtin set ...

not sure:

  • oil-equals == = for assignment. we already have var and set
@andychu
Copy link
Contributor Author

andychu commented Aug 2, 2019

Implemented this as shopt -s oil-parse-at. There are too many places where we reuse the parser to scope it to parse time, so I made it a global execution option.

It has the additional restriction of only being executed at the top level.

@andychu andychu closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant