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

Zephir supported string heredoc syntax? #87

Open
jockchou opened this issue Sep 2, 2016 · 2 comments
Open

Zephir supported string heredoc syntax? #87

jockchou opened this issue Sep 2, 2016 · 2 comments

Comments

@jockchou
Copy link

jockchou commented Sep 2, 2016

like php here:

http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

const VARIABLE_REGEX = <<<'REGEX'
\{
    \s* ([a-zA-Z_][a-zA-Z0-9_-]*) \s*
    (?:
        : \s* ([^{}]*(?:\{(?-1)\}[^{}]*)*)
    )?
\}
REGEX;

I want define VARIABLE_REGEX above, how to write in zephir???

@Izopi4a
Copy link

Izopi4a commented Sep 6, 2016

you cant. I use public static instead

@joshgoebel
Copy link

joshgoebel commented Feb 1, 2020

Is the heredoc syntax itself supported though?

@sergeyklay sergeyklay transferred this issue from zephir-lang/zephir Feb 2, 2020
@sergeyklay sergeyklay reopened this Feb 2, 2020
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

4 participants