Negative and positive lookahead expressions fail
Ex:
This snippet is supposed to match spacing and then a "}" and replace with that "}" and then the spacing while moving the cursor to the right.
In latex.hsnips:
snippet `(\s+)(?=\})` "move extra space" iA
}``rv=m[1]``
endsnippet
This doesn't work because expressions are restricted to being right before cursor.
Currently, the only way to do this is to have something like the following in the global section:
Negative and positive lookahead expressions fail Ex: This snippet is supposed to match spacing and then a "}" and replace with that "}" and then the spacing while moving the cursor to the right. In latex.hsnips:
This doesn't work because expressions are restricted to being right before cursor. Currently, the only way to do this is to have something like the following in the global section:
Is it possible to provide basic support for such regexes?