Skip to content

Annotations for __DATA__ section #2486

@hurricup

Description

@hurricup

Discussed in #2485

Originally posted by fkoyer April 19, 2022
Would it be possible to annotate the __DATA__ section so that the IDE formats it correctly? For example, if I'm storing YAML in the __DATA__ section I would like to do something like this:

#@inject YAML
__DATA__
config:
  db:
    host: 127.0.0.1
    user: admin
    pass: top_secret_password
    name: db1
  mailer:
    host: smtp.example.com
    user: [email protected]
    pass: my_email_password
    port: 587

This currently works for here-docs but not for the __DATA__ section. I've also seen people store Perl code in the __DATA__ section and pull it in with eval. In this case it would nice if we could annotate it with #@inject PERL5.

Thanks
Kent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions