Bug#343402: vim-runtime: JavaScript syntax highlighting broken

2006-01-08 Thread Stefano Zacchiroli
tags 343402 + moreinfo
thanks

Thanks for the patch.

Could you please even provide some JavaScript sample code on which the
misbehaviour of syntax highlighting is broken so that we can test the
patch before applying it and sending it upstream?

TIA,
Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-


signature.asc
Description: Digital signature


Bug#343402: vim-runtime: JavaScript syntax highlighting broken

2005-12-14 Thread Aaron Schrab
Package: vim-runtime
Version: 1:6.4-004+1
Severity: normal
Tags: patch

The javascript syntax highlighting file has redundant definitions of the
region javaScriptParen, the second of which is missing some contained
regions.  This causes most syntax highlighting to be disabled inside of
function definitions, and completely breaks syntax folding.

The attached patch fixes this.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim  1:6.4-004+1 Vi IMproved - enhanced vi editor
ii  vim-full 1:6.4-004+1 Vi IMproved - enhanced vi editor -

-- no debconf information
--- /usr/share/vim/vim64/syntax/javascript.vim  2005-12-07 16:13:40.0 
-0600
+++ javascript.vim  2005-12-14 17:49:06.126990223 -0600
@@ -64,7 +64,6 @@
 
  catch errors caused by wrong parenthesis
 syn region  javaScriptParen   transparent start=( end=) 
contains=javaScriptParen,javaScriptComment,javaScriptSpecial,javaScriptStringD,javaScriptStringS,javaScriptSpecialCharacter,javaScriptNumber,javaScriptRegexpString,javaScriptBoolean,javaScriptBraces,javaScriptFunction,javaScriptFunctionFold,javaScriptConditional,javaScriptRepeat,javaScriptBranch,javaScriptOperator,javaScriptType,javaScriptStatement,javaScriptBoolean,javaScriptConstant
- syn region  javaScriptParen   transparent start=( end=) 
contains=javaScriptParen,javaScriptComment,javaScriptSpecial,javaScriptStringD,javaScriptStringS,javaScriptSpecialCharacter,javaScriptNumber,javaScriptRegexpString,javaScriptBoolean,javaScriptBraces
 syn match   javaScrParenError  )
 
 if main_syntax == javascript