Bug#343402: marked as forwarded (vim-runtime: JavaScript syntax highlighting broken)

Debian Bug Tracking System owner at bugs.debian.org
Sun Jan 15 10:03:34 UTC 2006

Your message dated Sun, 15 Jan 2006 10:56:05 +0100
with message-id <20060115095605.GA18914 at aquarium.takhisis.invalid>
has caused the Debian Bug report #343402,
regarding vim-runtime: JavaScript syntax highlighting broken
to be marked as having been forwarded to the upstream software
author(s) Claudio Fleiner <claudio at fleiner.com>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 343402-forwarded) by bugs.debian.org; 15 Jan 2006 09:57:23 +0000
>From zack at bononia.it Sun Jan 15 01:57:23 2006
Return-path: <zack at bononia.it>
Received: from sockmel.bononia.it ([])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Ey4dX-0002bv-9e; Sun, 15 Jan 2006 01:57:23 -0800
Received: from muletto.takhisis.invalid (81-174-9-167.f5.ngi.it [])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "Stefano Zacchiroli", Issuer "sockmel.bononia.it" (verified OK))
	by sockmel.bononia.it (Postfix) with ESMTP id 5DA5856E2C;
	Sun, 15 Jan 2006 10:57:18 +0100 (CET)
Received: by muletto.takhisis.invalid (Postfix, from userid 1000)
	id 39AC2440B1; Sun, 15 Jan 2006 10:56:05 +0100 (CET)
Date: Sun, 15 Jan 2006 10:56:05 +0100
From: Stefano Zacchiroli <zack at debian.org>
To: Claudio Fleiner <claudio at fleiner.com>
Cc: Aaron Schrab <aaron at schrab.com>,
	343402-forwarded at bugs.debian.org, vim-dev at vim.org
Subject: Re: Bug#343402: vim-runtime: JavaScript syntax highlighting broken
Message-ID: <20060115095605.GA18914 at aquarium.takhisis.invalid>
References: <20051214234932.23581.16562.reportbug at ats.eti.wips.gov>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm"
Content-Disposition: inline
In-Reply-To: <20051214234932.23581.16562.reportbug at ats.eti.wips.gov>
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu"
Content-Disposition: inline

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tags 343402 + pending

Dear Claudio,
  Aaron Schrab reported [1] that syntax highlighting and folding for
JavaScript are bugged due to redundant definitions of the region

He also provided a patch which fixes the syntax highlighting part of the
problem. The patch is attached and applied in the current version of the
Debian package. Could you please consider the inclusion of the patch in
future releases of the JavaScript support for vim and perhaps get in
touch with Aaron for the folding part of the problem?

Attached you can also find a JavaScript snippet on which the problem
could be reproduced.

Many thanks in advance,

[1] http://bugs.debian.org/343402

Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,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. -!-

Content-Type: application/x-javascript
Content-Disposition: attachment; filename="prototype.js"
Content-Transfer-Encoding: quoted-printable

/*  Prototype JavaScript framework, version 1.4.0=0A *  (c) 2005 Sam Stephe=
nson <sam at conio.net>=0A *=0A *  THIS FILE IS AUTOMATICALLY GENERATED. When =
sending patches, please diff=0A *  against the source tree, available from =
the Prototype darcs repository.=0A *=0A *  Prototype is freely distributabl=
e under the terms of an MIT-style license.=0A *=0A *  For details, see the =
Prototype web site: http://prototype.conio.net/=0A *=0A/*------------------=
--------------------------------------------------------*/=0A=0Avar Prototy=
pe =3D {=0A  Version: '1.4.0',=0A  ScriptFragment: '(?:<script.*?>)((\n|\r|=
=2E)*?)(?:<\/script>)',=0A=0A  emptyFunction: function() {},=0A  K: functio=
n(x) {return x}=0A}=0A=0Avar Class =3D {=0A  create: function() {=0A    ret=
urn function() {=0A      this.initialize.apply(this, arguments);=0A    }=0A=
  }=0A}=0A=0Avar Abstract =3D new Object();=0A=0AObject.extend =3D function=
(destination, source) {=0A  for (property in source) {=0A    destination[pr=
operty] =3D source[property];=0A  }=0A  return destination;=0A}=0A=0Afuncti=
on blah() {=0A  var x =3D 1; // comment=0A  for( var y =3D 0; y < x; ++y ) =
{=0A  }=0A}=0A=0A// vim: foldmethod=3Dsyntax=0A
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="152_javascript.vim.diff"
Content-Transfer-Encoding: quoted-printable

Index: vim/vim/runtime/syntax/javascript.vim
--- vim.orig/vim/runtime/syntax/javascript.vim	2006-01-15 10:34:04.00000000=
0 +0100
+++ vim/vim/runtime/syntax/javascript.vim	2006-01-15 10:43:59.000000000 +01=
@@ -64,7 +64,6 @@
 " catch errors caused by wrong parenthesis
 syn region  javaScriptParen       transparent start=3D"(" end=3D")" contai=
- syn region  javaScriptParen       transparent start=3D"(" end=3D")" conta=
 syn match   javaScrParenError  ")"
 if main_syntax =3D=3D "javascript"


Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (GNU/Linux)



More information about the pkg-vim-maintainers mailing list