Fork me on GitHub
#emacs
<
2017-07-17
>
mikepjb09:07:29

haha yes thanks @moogey

mikepjb12:07:40

is it possible to do non capturing regex in emacs?

mikepjb12:07:14

I’m trying to write a language mode that matches if statement syntax

mikepjb12:07:04

I need to differentiate between not*if*ication and if(statement) or if (statement)

mikepjb12:07:50

\\(if\\|else\\)\\(?:[^A-Za-z0-9]\\) this works but captures the (/{ after the if/else keyword

ustunozgur16:07:17

@mikepjb not sure, but https://github.com/joddie/pcre2el could help in discovering it, if it's easier for you to write in PCRE