Syntax highlighting of replacement string wrong

Bug #1088421 reported by Victor Engmark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
New
Undecided
Unassigned

Bug Description

These two lines are semantically identical - They both replace a single tick with two ticks:

foo="${bar//"'"/''}"
foo="${bar//\'/''}"

The first variant is highlighted properly, but the second is interpreted as the start of a string.

Implementation hint: It looks like this is handled starting at line 476 of /usr/share/vim/vim73/syntax/sh.vim.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vim 2:7.3.429-2ubuntu2.1
ProcVersionSignature: Ubuntu 3.2.0-34.53-generic 3.2.33
Uname: Linux 3.2.0-34-generic i686
ApportVersion: 2.0.1-0ubuntu15
Architecture: i386
Date: Mon Dec 10 11:23:33 2012
InstallationMedia: Ubuntu 10.04.4 LTS "Lucid Lynx" - Release i386 (20120214.2)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: vim
UpgradeStatus: Upgraded to precise on 2012-07-19 (144 days ago)

Revision history for this message
Victor Engmark (victor-engmark) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.