multi-part keywords folding doesn't work in other languages
-
-
I’m curious if this was intended or not.
P.S. sorry for bad English. -
Unfortunately, the bulk of the User Defined Language (UDL) system was built without encoding in mind, so many of the entries – including the code-folding – don’t properly handle non-ASCII characters.
There are, unfortunately, many open issues regarding UDL. And at least a half-dozen that I could find that were about UDL’s inadequacies with respect to non-ASCII characters:
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8562
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8399
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6197
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6014
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4742
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4688
Maybe if more people would upvote those, and provide more examples that it’s still not working, the developers would prioritize UDL fixes.
If you are willing to install a plugin like PythonScript, it’s likely possible to script a solution – I believe that it’s possible to affect code folding from a scripting plugin, similar to the way that @Ekopalypse used regex to enhance any lexer (UDL or builtin), but I’ve never played around with that, and don’t have as much time for PythonScript hacking as I used to. If you give it a go, but get stuck, show us what you have, and we can likely provide advice; or, if it catches someone’s interest, there may be someone here with the time to give it a go and get you to a good head start.
Sorry I don’t have better news, or a fully-functional workaround, for you.
-
@PeterJones thanks for the explanation. Maybe I’ll try to fix this myself, but I dont feel confident.