Re: Content of syntax regions

2022-08-24 Thread BPJ
I have found that using patterns with lookahead/lookbehind works reasonably well in most cases (for this syntax at least). It feels like overkill though and is harder to maintain because I may need to change patterns in two or more places instead of one. Den tis 23 aug. 2022 20:45M skrev: > >

Re: Content of syntax regions

2022-08-23 Thread M
вт, 23 авг. 2022 г. в 20:02, Charles Campbell : > BPJ wrote: > > For my DSL I have a syntax region for text between a pair of > > delimiters inside which other syntax items should come in a specific > > order, say first dslFoo, then dslBar, then dslBaz. > > I can use nextgroup=dslBar to declare

Re: Content of syntax regions

2022-08-23 Thread Charles Campbell
BPJ wrote: For my DSL I have a syntax region for text between a pair of delimiters inside which other syntax items should come in a specific order, say first dslFoo, then dslBar, then dslBaz. I can use nextgroup=dslBar to declare which item should come after dslFoo and so on, but how do I

Content of syntax regions

2022-08-23 Thread BPJ
For my DSL I have a syntax region for text between a pair of delimiters inside which other syntax items should come in a specific order, say first dslFoo, then dslBar, then dslBaz. I can use nextgroup=dslBar to declare which item should come after dslFoo and so on, but how do I declare that the