You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in the discussion entry, I need to match a block of text that starts with a certain number of opening chars and then is closed with the same number of closing chars.
With a COUNT option in the grammar, this could easily be integrated like so:
I am not familiar with the implementation of pest, so I don't know how complex it would be to integrate this feature,
but @nfejzic and I would be interested in helping to implement it.
Currently, it might be possible to solve the above rule in another way, but if nesting should be allowed, where the outer chars must be at least one char longer, I haven't found a way to solve this with the current pest rule syntax.
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered:
The solution you mentioned would not work in our case. The problems we have is that blocks use same symbol for open/close delimiters, and we want to allow inner blocks iff they have at least 1 symbol more for delimiters. For example
~~~outer block~~~~
inner block
~~~~and close outer block~~~
I don't think that this or similar constructs would work without the ability to count the symbols.
In any case, we eventually figured out that we need to roll our own parser anyway, so we aren't looking for solution to this right now. As far as I'm concerned, this issue can be closed.
As mentioned in the discussion entry, I need to match a block of text that starts with a certain number of opening chars and then is closed with the same number of closing chars.
With a
COUNT
option in the grammar, this could easily be integrated like so:I am not familiar with the implementation of pest, so I don't know how complex it would be to integrate this feature,
but @nfejzic and I would be interested in helping to implement it.
Currently, it might be possible to solve the above rule in another way, but if nesting should be allowed, where the outer chars must be at least one char longer, I haven't found a way to solve this with the current pest rule syntax.
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: