
I use the Language Definition Designer to create a custom language.
The Default lexical state supports 3 child lexical states. One of the Child lexical state is a nummer with 5 digits like 01430 or 34678.
I have no idea how to describe the Scope (Start and End Pattern Group) for this State. I tried explicitly '0', then a regexp for a digit etc.
It only works, when I write it like {01430} and the start pattern is explicit '{'.
But this is not the reality.
There is a textline like
"Datum 01430 (Text)"
The part '01430' is a number and when entering, the start and end pattern should be recognized to switch the lexical state, but it didn't, and therefore ist has the wrong text highlighting and anything
else.
Could you please help me?
what is the start or end pattern group for a number?
The Default lexical state supports 3 child lexical states. One of the Child lexical state is a nummer with 5 digits like 01430 or 34678.
I have no idea how to describe the Scope (Start and End Pattern Group) for this State. I tried explicitly '0', then a regexp for a digit etc.
It only works, when I write it like {01430} and the start pattern is explicit '{'.
But this is not the reality.
There is a textline like
"Datum 01430 (Text)"
The part '01430' is a number and when entering, the start and end pattern should be recognized to switch the lexical state, but it didn't, and therefore ist has the wrong text highlighting and anything
else.
Could you please help me?
what is the start or end pattern group for a number?