occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
48 stars 6 forks source link

Snippet load error #24

Closed andreyorst closed 5 years ago

andreyorst commented 5 years ago

during testing #23 Ive encountered problem with loading jdj'\;;l - -=[]\,.kdj. I don't think that anyone would use such thing, but obviously there shouldn't be any error since all characters are valid.

error running hook WinSetOption(snippets='-=[]\,.kdj' 'jdj''\;;l' 'snippets-insert ''vaiv'' ')/: 2:6: 'set' regex parse error: unknown atom escape ';' at '(jdj'\;<<<HERE>>>;l)'
occivink commented 5 years ago

That's because the regex syntax only allows known escapes (see the regex doc), and will complain otherwise. If you search for \; you'll see the same thing happening.

andreyorst commented 5 years ago

got it