Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103652 - vim-core syntax/javascript.vim is broken
Summary: vim-core syntax/javascript.vim is broken
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
: 120827 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-24 20:38 UTC by Xuefer
Modified: 2006-01-29 12:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***