notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

[BUG] Ghost Comment Styling

Open
#15,046 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Is there an existing issue for this?
  • I have searched the existing issues
Description of the Issue

Even though my language is defined to only use ( ) for comments, I get comment styling randomly where it should not be. I can "chase" it and eventually get it to disappear without actually altering the content. Also, doing a compare seems to reset the bug as well.

Steps To Reproduce

I'm not sure the exact trigger for this behavior, but it happens to me regularly as of late.

Here is my language file:

EDM.xml.zip

Current Behavior

https://github.com/notepad-plus-plus/notepad-plus-plus/assets/12439543/ea9f37d9-c16b-4887-b1e8-48f4eac692a4

Expected Behavior

I expect comment styling only inside a pair of parenthesis.

Debug Information
Notepad++ v8.6.5   (64-bit)
Build time : Mar 29 2024 - 17:04:43
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "G:\Shared drives\Wolfram Engineering\W CAM\GCODE\TMA8-2\aaa.nc"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit
OS Version : 22H2
OS Build : 19045.4291
Current ANSI codepage : 1252
Plugins : 
    ComparePlugin (2.0.2)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
Anything else?

I love the program, thank you!

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue in Notepad++ v8.6.5 using the provided EDM.xml.zip language definition, focusing on comment styling outside paired parentheses. Compare behavior is also reported as resetting the bug. Done means comment styling appears only inside a pair of parentheses and does not disappear merely by chasing or comparing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.