about summary refs log tree commit diff stats
path: root/src/bindings/libregexp.nim
Commit message (Collapse)AuthorAgeFilesLines
* Update code stylebptato2024-04-171-4/+4
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* libregexp: update LRE_FLAG_UTF16 namebptato2024-03-211-1/+1
| | | | upstream now calls it unicode
* libregexp: cast flags to the right sizebptato2024-02-181-1/+1
| | | | We have less than 8 flags, so the set's size is 1.
* regex: re-work compileSearchRegexbptato2024-02-171-7/+16
| | | | | | | I've gotten tired of not being able to search for forward slashes. Now it works like in vim, and you can also set default ignore case in the config.
* Compile with styleCheck:usagesbptato2023-12-281-1/+1
| | | | much better
* Add libregexp header to libregexp bindingbptato2023-07-041-6/+8
|
* buffer: fix some search bugs & refactor regex stuffbptato2023-01-011-4/+4
| | | | | | | | cursorBytes uses twidth now. cursorNextMatch matches the byte *after* the cursor (somewhat more consistently than before). match() no longer counts capture groups. LRE_FLAG_GLOBAL now goes through the entire string.
* Remove libregexp headersbptato2022-12-111-6/+4
| | | | we should be fine.....
* Improved incremental search: support unicodebptato2022-07-231-0/+2
|
* Add search functionbptato2022-07-221-0/+19
Uses libregexp from QuickJS. Incremental search is quite hacky for now, but overall it seems to work OK.