Skip to content

XML highlighting fails when an attributes uses single quotes and a space #3403

@DavidFichtmueller

Description

@DavidFichtmueller

Description of the Issue

The syntax highlighting for the currently selected element in an XML files has a small bug when there are two attributes of which the first one uses single quotes and has a space in the attribute content.

Steps to Reproduce the Issue

  1. Switch to syntax highlighting to XML
  2. copy and paste this line: <element attribute1='some content' attribute2='1234' />
  3. move the cursor inside the element

Expected Behavior

The attributes and their content get a yellow background.

Actual Behavior

At the first attribute, the yellow background stops with the space, at the second element, the yellow background starts after the first character.
grafik

Debug Information

Notepad++ v7.4.1 (32-bit)
Build time : May 18 2017 - 02:00:37
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 7 (64-bit)
Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll NppTextFX.dll PluginManager.dll XMLTools.dll

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions