regex - Atom package grammar regular expression flag for case insensitivity -


i following a tuturial on creating package grammar syntax highlighting in atom. language case-insensitive, e.g. define equivalent define.

atom seems running javascript regular expressions, seems flags not supported in cson grammar configuration file

    'match': '(define)' 

it seems there no documentation grammars.

how can case-insensitive matching achieved?

use special group: https://github.com/kkos/oniguruma/blob/master/doc/re#l197

'match': '(?i)(define ... 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -