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

should it recognize =finish? #50

Open
stuart-little opened this issue Jun 12, 2021 · 0 comments
Open

should it recognize =finish? #50

stuart-little opened this issue Jun 12, 2021 · 0 comments

Comments

@stuart-little
Copy link

As far as I can tell, the closest Raku semantic cousin to Perl's __DATA__ marker is =finish. As per the REPL:

> __DATA__
===SORRY!=== Error while compiling:
Unsupported use of __DATA__ as start of data.  In Raku please use: the
=finish pod marker and $=finish to read.
------> __DATA__⏏<EOL>

When I type __DATA__ in a *.pl file I'm editing in emacs, the item is recognized and the color and behavior of the text following it is identical to that of a multi-line comment (no special indentation, recognized keywords, etc.).

I think it would be helpful to have something analogous in raku-mode whenever =finish is encountered. Currently, it doesn't have much of an effect at all: indentation stays in place, keywords that I might place accidentally in the $=finish text are still colorized, etc.

Would this make for a good enhancement of the mode?

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

No branches or pull requests

1 participant