Implemented HEREDOC
Original Reporter info from Mantis: Raid
-
Reporter name: Dennis Fehr
Original Reporter info from Mantis: Raid
- Reporter name: Dennis Fehr
Description:
I have implemented a HEREDOC approach, but before putting the patch here I'll ask how you want it to work? Currently, the format is:
Const
SOME_STRING = [[SOMEMARKER
a
b
c
SOMEMARKER]];
After the "SOMEMARKER" has to be a linefeed (just like a standard heredoc), and I also wanted the requirement of doing a file feed for the HEREDOC, so I implemented:
SOME_STRING = [['somefile.inc']];
Which will search the include directories (the same search method as $I), which would be nice if someone made it to a function imo. The reason I made it [[ because it wasn't being used and currently looks more Pascal-ish than <<< if you ask me.
I made this patch to kill 2 issues at once. The HEREDOC request, and the $INCLUDESTRING request.
If the format is okay, I will upload the patch.
Mantis conversion info:
- Mantis ID: 21848
- OS: Ubuntu
- OS Build: 11.04 (Oneiric)
- Platform: i686 Linux
- Monitored by: » Raid (Dennis Fehr), » @michaliskambi (Michalis Kamburelis)