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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -