Your message dated Sun, 2 Mar 2008 12:34:43 -0500
with message-id <[EMAIL PROTECTED]>
has caused the report #468366,
regarding [vim-runtime] Incorrect syntax highlighting of sh's arithmetic
expressions
to be marked as having been forwarded to the upstream software
author(s) "Dr. Charles E. Campbell, JR." <[EMAIL PROTECTED]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
468366: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468366
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Charles,
As shown below, sh.vim is too loosely interpreting the arithmetic
expansion syntax. As noted in Bash's manpage and SUS[0], arithmetic
expansion should be treated as if the contained expression were within
double quotes. shArithmetic should contain a cluster that doesn't
include shSubSh.
Also, I noticed that the default syntax highlighting highlights $(()) as
an error. Should that be the case since it is specified in SUS?
On Thu, Feb 28, 2008 at 10:31:15AM -0500, Edward Allcutt wrote:
> The following is highlighted badly:
>
> ==== start file ========
> #!/bin/bash
>
> echo $(( ( 2 << 5 ) + 1 ))
>
> echo foo bar
> ==== end file ==========
>
> The 5 is the wrong colour and everything following until the end of file
> is highlighted as if it were quoted text. Removing the parentheses around
> the sub-expression corrects the highlighting but changes the meaning of the
> expression.
[0] -
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_06_04
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature
--- End Message ---