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

Bug 120827

Summary: vim-core-6.4: javascript.vim matches parentheses incorrectly
Product: Gentoo Linux Reporter: David Barnett <daviebdawg>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED DUPLICATE    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Corrected javascript.vim

Description David Barnett 2006-01-29 09:32:35 UTC
In a .js file in vim, a matched parenthesis pair confuses all syntax highlighting after.  There seems to be a duplicate "syn match javaScriptParen" line in the syntax file (/usr/share/vim/vim64/syntax/javascript.vim).  Removing this duplicate solved the problem for me.

Steps to Reproduce:
1) vi foo.js
2) type a keyword (i.e. "var")
3) on the line above, enter matching pair of parentheses
Comment 1 David Barnett 2006-01-29 09:39:57 UTC
Created attachment 78442 [details]
Corrected javascript.vim
Comment 2 Ciaran McCreesh 2006-01-29 12:44:04 UTC

*** This bug has been marked as a duplicate of 103652 ***