Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Pugs multiline comments #32

Closed
stasoid opened this issue Nov 17, 2018 · 3 comments
Closed

Pugs multiline comments #32

stasoid opened this issue Nov 17, 2018 · 3 comments

Comments

@stasoid
Copy link

stasoid commented Nov 17, 2018

Can someone please tell how to introduce multiline comment in Pugs?
Perl6 embedded comment doesn't work:

#`(
fdsd
)
say 123

There is multiLineComment in Lexer.hs, so I am assuming it supports some kind of multiline comments,
although I can't figure out which one (I don't know Haskell).

@zoffixznet
Copy link

zoffixznet commented Nov 17, 2018

(on an off chance that you're just trying to use Perl 6 rather than specifically its Pugs implementation, note that there hasn't been any commits in this repo since mid-2015 and the compiler that fully supports Perl 6 is currently Rakudo https://rakudo.org/ )

@stasoid
Copy link
Author

stasoid commented Nov 18, 2018

@zoffixznet Yes, I am aware of that.

@stasoid
Copy link
Author

stasoid commented Nov 18, 2018

Pugs multiline comments differ from modern Perl6 embedded comments in two ways: no backtick after # and multiline comment must not start at start of the line.
So this doesn't work:

#(
fdsd
)
say 123

but this works:

 #(
fdsd
)
say 123

@stasoid stasoid closed this as completed Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants