Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 103652

Summary: vim-core syntax/javascript.vim is broken
Product: Gentoo Linux Reporter: Xuefer <Xuefer>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED UPSTREAM    
Severity: normal CC: daviebdawg
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Xuefer 2005-08-24 20:38:08 UTC
i haven't remove the sapce before "syn region  javaScriptParen". just to keep 
patch clean
"syn region  javaScriptParen" is double (old line isn't removed)

diff -u a javascript.vim
--- a   2005-08-25 11:31:49.000000000 +0800
+++ javascript.vim  2005-08-25 11:35:25.000000000 +0800
@@ -63,7 +63,6 @@
 syn sync maxlines=100
 
 " catch errors caused by wrong parenthesis
-syn region  javaScriptParen       transparent start="(" end=")" 
contains=javaScriptParen,javaScriptComment,javaScriptSpecial,javaScriptStringD,j
avaScriptStringS,javaScriptSpecialCharacter,javaScriptNumber,javaScriptRegexpStr
ing,javaScriptBoolean,javaScriptBraces
  syn region  javaScriptParen       transparent start="(" end=")" 
contains=javaScriptParen,javaScriptComment,javaScriptSpecial,javaScriptStringD,j
avaScriptStringS,javaScriptSpecialCharacter,javaScriptNumber,javaScriptRegexpStr
ing,javaScriptBoolean,javaScriptBraces,javaScriptFunction,javaScriptFunctionFold
,javaScriptConditional,javaScriptRepeat,javaScriptBranch,javaScriptOperator,java
ScriptType,javaScriptStatement,javaScriptBoolean,javaScriptConstant
 syn match   javaScrParenError  ")"


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
function a() {}
function b() {}
only the 1st "function" is higlighted

Expected Results:  
syn color ok
Comment 1 Ciaran McCreesh 2005-09-22 12:09:17 UTC
Could you please send this one upstream? I don't know enough javascript to
comment on its validity... The maintainer is Claudio Fleiner <claudio@fleiner.com>.
Comment 2 Ciaran McCreesh 2006-01-29 12:44:04 UTC
*** Bug 120827 has been marked as a duplicate of this bug. ***