Correct delimiter regex for quarto
sho-87 opened this issue · comments
Simon Ho commented
(this is somewhat related to #8)
quarto qmd files use cell delimiters that look something like:
```python
or
```{python}
I'm trying to use a delimiter regex to catch both; I currently have the following but doesnt seem to be working:
vim.g.slime_cell_delimiter = "^```{?%a+}?$"
any thoughts on why that pattern doesnt seem to be matching either? does the plugin use standard regex or lua match patterns?
Hugo LEVY-FALK commented
Hi! the plugin is pure vimscript. The regexp you are looking for is ^```{\?\a\+}\?$
.
Simon Ho commented
perfect, thanks!