From: SourceForge.net <no...@so...> - 2007-05-08 20:16:36
|
Bugs item #1691877, was opened at 2007-03-31 13:43 Message generated for change (Comment added) made by kpouer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1691877&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: text area and syntax packages Group: normal bug >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: david Moss (seconddevil) Assigned to: Nobody/Anonymous (nobody) Summary: broken shellscript syntax hilighting Initial Comment: Sorry if this is a dupe. The syntax hilighting for shellscript is broken when a quoted string spans multiple lines. To reproduce bug, create new buffer in shellscript mode and paste the following code to it. Everything after the function is hilighted as a string literal when it shoud be plain code: #!/bin/bash function get_ext(){ FILE="${1}"; file "${FILE}" | awk "{ gsub(\" [ ]*\", \" \"); \ gsub(\"PNG\", \".png\"); \ gsub(\"GIF\", \".gif\"); \ print; }" | cut -d' ' -f2; } for I in ${@} ; do S=$(file "${I}"); if [ a"$(echo "${S}" | grep "PNG\|GIF")" != a ] ; then cp "${I}" ~/"${I}"$(get_ext "${I}"); fi ; done ; ---------------------------------------------------------------------- >Comment By: Matthieu Casanova (kpouer) Date: 2007-05-08 22:16 Message: Logged In: YES user_id=285591 Originator: NO Hi, I think this is fixed by this edit mode : http://jedit.svn.sourceforge.net/viewvc/*checkout*/jedit/jEdit/trunk/modes/shellscript.xml?revision=9228 could you try ? ---------------------------------------------------------------------- Comment By: david Moss (seconddevil) Date: 2007-03-31 13:51 Message: Logged In: YES user_id=255387 Originator: YES File Added: shellscript-syntax-bug.html ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1691877&group_id=588 |