techee left a comment (geany/geany#4303)
Nice :-)
I was also considering the subset/superset thing but I'm not sure if it would
do the right thing for all kinds of languages. Consider for instance some
XML-like language where two XML parsers cooperate and one parses xml1 elements,
the other xml2 elements. Then, for
```xml
<xml1> <!-- 1 -->
<xml2> <!-- 2 -->
<xml1> <!-- 3 -->
<xml2>
</xml2>
</xml1> <!-- 3 -->
</xml2> <!-- 2 -->
</xml1> <!-- 1 -->
```
1. XML1 parser starts for the whole range and creates a promise for the
following xml2
2. The promise is executed and XML2 parser creates a promise for the following
xml1
3. The promise is executed and XML1 parser tries to create a promise for the
following xml2 - this xml2 is however a subset of the previous xml2 and this
promise won't be performed even though it should.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/4303#issuecomment-2971698379
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/4303/[email protected]>