Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions

no edit summary
(Unix Shell syntax highlighting issues)
No edit summary
Line 918:
 
: Update: Submitted to the [http://sourceforge.net/tracker/?func=detail&aid=3303485&group_id=114997&atid=670234 GeSHi issue tracker]. [[User:CRGreathouse|CRGreathouse]] 15:50, 18 May 2011 (UTC)
 
= GeShi power appears to be very limited =
 
Look at this: no recogition of embedded command substitution syntax within the string:
 
<lang bash># this is <lang bash>
echo "$(foo "$(bar "asdf\"")")"</lang>
 
Why is the last closing parenthesis green? WTF?
 
Type that same example above into Vim and it's handled perfectly by Vim's recursive, hierarchical language of syntax highlighting regions.
 
Also, what about this:
 
<lang bash>#
cat <<!
echo while true do ; done if fi
what the hell
!</lang>
 
Keywords are being highlighted inside a here document, which is verbatim text. Shell expressions can occur in a here document, but only as command substitutions $(...).
 
Sorry, this is not a usable syntax coloring system. I'm giving up on defining a syntax coloring scheme for my language, since the official stuff in the GeShi distribution isn't doing the kinds of things that I need to do even a 60% accurate job of it. [[Special:Contributions/192.139.122.42|192.139.122.42]] 23:01, 27 January 2012 (UTC)
Anonymous user