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

Start scripts using "script" rather than "def script" #48

Open
AndreVanDelft opened this issue Jul 28, 2014 · 0 comments
Open

Start scripts using "script" rather than "def script" #48

AndreVanDelft opened this issue Jul 28, 2014 · 0 comments

Comments

@AndreVanDelft
Copy link
Owner

For now a script or scripts section starts with "def script" whereas "script" would be much nicer. The reason is that "script" is still an identifier, rather than a keyword, and it would be quite hard (if I am right) to see in Scala expressions etc that this special identifiers starts a new script definition.
A solution would be to ensure that "script" is scanned as a keyword. However this should be done conditionally, i.e. after "import subscript.language" or something like that.

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