SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

add indentation rules for Oniguruma RegExp syntax #111

Closed keith-hall closed 7 years ago

keith-hall commented 7 years ago

this PR adds indentation rules to the Oniguruma RegExp syntax, see the comments in the file for details. It also fixes a bug with indentParens (set in the Default package) that meant that typing - match: (?=\)) Enter in a .sublime-syntax file would unindent the next line.

FichteFoll commented 7 years ago

Thanks. Left a comment for consideration.

Also nice usage of possessive quantifiers (and an atomic group). I did this too in the YAML syntax highlighter before sregex was a thing and I had to remove them since they aren't supported.

FichteFoll commented 7 years ago

Cherry-picked as 6b1aaa8b0af23234948b51ded4e116f5acb8bf79 and acb2f8b008ed4091d1fa693c0fc3007fd6ea7184.

Later revised with 2b59ee2ccc4e6f8c40742e65e291e23498262b3e.