Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120827 - vim-core-6.4: javascript.vim matches parentheses incorrectly
Summary: vim-core-6.4: javascript.vim matches parentheses incorrectly
Status: RESOLVED DUPLICATE of bug 103652
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 09:32 UTC by David Barnett
Modified: 2006-01-29 12:44 UTC (History)
0 users

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


Attachments
Corrected javascript.vim (javascript.vim,4.25 KB, text/plain)
2006-01-29 09:39 UTC, David Barnett
Details

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