Age | Commit message (Collapse) | Author |
|
|
|
Removed leading '_' from snippet methods, but kept compatibility for now.
|
|
|
|
Also refactored snippet lookup, added options to Lua and C modules to include
snippet triggers in autocompletion lists, swapped snippet keybindings, and fixed
a bug recognizing lexer-specific snippet files as global.
|
|
The first character in the snippet was being deleted. An example of the end
placeholder being lost is when it and the caret are at the end of the line and
Enter is pressed -- the autoindent feature appears to delete it.
This fix assumes a snippet of at least length 1 was inserted.
|
|
|
|
|
|
Snippet prev/next coupled with subsequent edits may cause the buffer to contain
an unexpected snippet placeholder. Handle it gracefully.
|
|
Lua 5.3 made them optional and LuaJIT support has been dropped.
|
|
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
|
|
|
|
|
|
|
|
Ensure snippet start position is as far back as possible.
|
|
|
|
|
|
Thanks to Michael Richter for the idea.
|
|
|
|
|
|
It is currently not possible to escape `<` and `[` immediately after a `%n`
mirror.
|
|
|
|
Do not use `ipairs()` and use more consistent variable names among other things.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also fixed a small bug and documentation.
|
|
|
|
|
|
They are often seen in XML snippets and escaping would be tedious.
|
|
It's possible for the `updated` parameter to be `nil`; handle it.
|
|
|
|
|
|
|
|
|
|
LuaJIT uses Lua 5.3's new utf8 library.
Restored documentation for Lua 5.1 symbols and added deprecation notes.
|
|
|
|
Ensure the result of snippets[name] is not a table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|