In my core.match patterns I want one specific pattern to have a "high priority". For example in:
(match
[paragraph line text is-special ]
[_ _ #"^\s*$" _ ] "empty"
[0 0 _ false ] "project-header"
[0 _ _ false ] "project-header-note"
[1 _ _ false ] "next-action"
[2 _ _ false ] "following-action"
:else "generic"))
I want the text variable in the "empty" row to always stop subsequent matching if it matches and return "empty". However probably because this clause is more generic it tries it as the last one and matches another one instead.
As far as I know, core.match doesn't support regexes as match variables in any "special" way. That is, your first clause might match if
textwere actually a regex, but if it is a string matching a regex, it will fail.