XML syntax highlighting breaks if empty tag contains whitespace before close

Open Beginner friendly
#4,213 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
tooling

Research direction

Reproduce the problem in micro with the two XML examples, comparing an empty tag with and without whitespace before the closing slash. Then locate the XML syntax-highlighting implementation and its related tests. Done means both forms receive correct highlighting without regressing the existing example.

Written by the indexing model from the issue text.

Description

bug syntax
Description

XML syntax highlighting handles <tagname attr="text"/> fine, but is borked by <tagname attr="text" />.

Environment
  • Version: 2.0.15 (6a62575b)
  • OS: Archlinux
  • Terminal: alacritty
Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from micro-editor/micro

All issues in micro-editor/micro

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.