Commit Graph

10 Commits

Author SHA1 Message Date
jgmdev a31e683281 Merge branch 'master' into dev 2021-06-06 01:37:01 -04:00
Adam Harrison 3b816a2b4a Changed regex error handling, so that errors can be handled gracefully in lua, and made it so gsub returns the exact matches and replacements. 2021-06-04 23:58:17 -04:00
Adam 248d70a8ca
Add PCRE to support regular expressions
Use regular expressions instead of Lua patterns for find and replace editor commands.

Syntax files can now use regex or Lua patterns as before keeping backward compatibility for plugins.
2021-06-02 21:27:00 +02:00
Francesco Abbate ba48cb1382 Fix problem in regex.gsub
The local n was not initialized and the "string" argument was shadowing the Lua's "string" module.
2021-05-07 10:44:38 +02:00
Adam Harrison a100a7b6a9 Fixed offsets, and passed through an additional parameter. 2021-05-06 19:53:03 -04:00
Adam Harrison c0c6bc5be9 Replaced pattern-based commands with regexes. 2021-05-06 19:53:03 -04:00
Adam Harrison bf09582478 Fixed lines to conform to style guidelines. 2021-05-06 19:53:03 -04:00
Adam Harrison 272067124d Updated PCRE to use utf8, and created sample plugin. 2021-05-06 19:53:03 -04:00
Adam Harrison a9dd790321 Reworked files to conform to style guidelines. 2021-05-06 19:53:03 -04:00
Adam Harrison 0c9e517791 Initial commit of PCRE engine. 2021-05-06 19:53:03 -04:00