Hello, @hans-gerch and All,
The Range field ( Bereich ) is not intended to define the range of numbers
It’s just a kind of suffix-prefix symbol(s) which will be highlighted, like the numbers placed right before and, possibly, the numbers located right after
For instance, if that Range zone contains - :: __ ( a single dash, a double colon or a double underscore chars ), this means that, for instance, all the strings, below, will be highlighted in red
2-0.5 100::47 0.003__7.785 0000::Now, I’m not very acquainted with UDL and I don’t see an obvious way to distinguish the digit 0 from the other digits ! I’m afraid that it cannot be do with the native N++ UDL feature.
However, you could use an enhanced UDL lexer, which could manage, differently, the 0 digit from the others. Two conditions :
Firstly, install the PythonScript plugin ( last version 1.5.4, using Python v2.7.18 )
Secondly, use the EnhanceUDLLexer.py Python script, created by @ekopalypse, from that post :
https://notepad-plus-plus.org/community/topic/17134/enhance-udl-lexer/31Best Regards,
guy038