From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: [bug] Parts of code blocks are highlighted as Org comments Date: Mon, 29 Oct 2012 14:20:51 +0100 Message-ID: <80390xl8i4.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, If you have such a Sh code block in any Org document, you'll see that the 4th line will be highlighted as an Org comment from the "# != 2"... #+begin_src sh # swap FILE1 FILE2 swap () { if [[ $# != 2 ]]; then return 1 fi tmpfile=/tmp/.swapper.$$.$RANDOM mv -f $1 $tmpfile mv -f $2 $1 mv -f $tmpfile $2 return 0 } #+end_src If you edit such (via C-c '), you can check that it's NOT highlighted as a comment in the Shell mode. Best regards, Seb -- Sebastien Vauban