shocco
shocco copied to clipboard
Shocco doesn't understand the code inside here documents
I've been using shocco for a while and found that if I have something like:
cat << EOF >> somefile.sh
# I'm a comment
hello I'm a here document
EOF
Results in:
cat << EOF >> somefile.sh
# DIVIDER
hello I'm a here document
EOF
The workaround of course is use something like #/
.
Yeah, this is a longstanding issue. I'm not sure there's much we can easily do about it with the current system. Something like docco or rocco might handle this a bit better.
Well, I'm using:
cat << EOF >> somefile.sh
#/ I'm a comment
hello I'm a here document
EOF
...as a workaround. It's not specially beautiful, but it is functional, and until now it seems to work fine.
Sorry, I don't understand what this have to do with docco/rocco... can they parse shell files?
Sorry, I don't understand what this have to do with docco/rocco... can they parse shell files?
Yeah I believe they support anything that pygments supports. Their heredoc handling may be a bit better since they have a more rich set of string parsing utilities at their disposal is all I was thinking.
On 20 November 2012 03:46, Ryan Tomayko [email protected] wrote:
Sorry, I don't understand what this have to do with docco/rocco... can they parse shell files?
Yeah I believe they support anything that pygments supports. Their heredoc handling may be a bit better since they have a more rich set of string parsing utilities at their disposal is all I was thinking
Oh, ok. I understand. As I said, I can work with my workaround, isn't that terrible.
Regards,
Pablo Olmos de Aguilera Corradini - @PaBLoX http://www.glatelier.org/ http://about.me/pablox/ http://www.linkedin.com/in/pablooda/ Linux User: #456971 - http://counter.li.org/