Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with literal annotation for here-doc strings #1789
When working with DBI, I often use construction like:
$st = $db->prepare(<<__SQL); SELECT * FROM ... __SQL
When here-doc is used in this style (as argument or member of a list), it is not recognised by
Word "SQL" in delimiter is not recognized as injection language as it starts with underscores (which really helps to visually highlight here-docs start/end).
It would be really nice either to allow
@hurricup I faced similar issue. My colleague uses lowercase to define injections via here doc, something like
As far as I can understand, injection list is defined here and is not configurable at all.
Maybe it will be a good feature, to configure bindings between inject keyword and language, supported by IDEA? And current settings will be used as a default.