Fold Issue in Verilog mode
-
Attached image i am seeing anomaly in verilog mode in notepad++. begin-end blocks in verilog are same as {…} in C. Adding a comment in 3rd line in the shown style is causing issue in fold map, when i removed the comment it resolved. May i know is it known issue ?
-
Syntax highlighting and folding are not functions of the main application; they’re provided by this third-party library: https://www.scintilla.org/Lexilla.html
If you send the issue to the library’s maintainer, and a fix is committed, then a future version of Notepad++ will benefit, whenever its third-party components get updated.
In the meantime, try rewriting the comment text without using array literal syntax (i.e. remove the curly braces
{...{...}}
) just to see if that makes a difference. -
@rdipardo yeah 13-21 lines are without the comment , it is looking good. as mentioned by u i have reported the issue in github.
-
@RAMA-KRISHNA there is a reply in that thread kindly have a look so that we can update in next version of notepad++.
for now workaround is to insert the space between//{.....}
so that it becomes
// {....}
and the fold disappeared.
-
observed one more issue regarding the folds and pasted same in the above scintilla thread . ifdef is closing with end and begin is closing with endif.