aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add a warnx() wrapper and die/warn with rv 3Thomas Voss 2024-01-281-4/+8
|
* Exit with EXIT_FAILURE if we got no matchesThomas Voss 2024-01-281-1/+6
|
* Require C23Thomas Voss 2024-01-273-39/+9
|
* Don’t begin diagnostics with a capitalThomas Voss 2024-01-271-10/+10
|
* Fix potential UTF-8 bugsThomas Voss 2024-01-261-4/+8
|
* Disallow 0-width matches with x// and h//Thomas Voss 2024-01-261-16/+22
|
* Validate that input is well-formed UTF-8Thomas Voss 2024-01-261-12/+20
|
* Provide context on regex comp failureThomas Voss 2024-01-261-1/+1
|
* Support case-insensitive regex matchingThomas Voss 2024-01-241-5/+11
|
* Move arguments to git-grep into static arrayThomas Voss 2024-01-241-6/+9
|
* Find files via git-grep instead of git-ls-filesThomas Voss 2024-01-241-6/+7
| | | | | | It would be preferable to use git-ls-files as it is more suited for our purposes, however git-grep allows us to filter out binary files. It makes no sense to regex match in a binary file, so this is crucial.
* Codestyle changesThomas Voss 2024-01-241-6/+7
|
* Disallow h// at the start of patternsThomas Voss 2024-01-231-0/+2
|
* Minor refactorThomas Voss 2024-01-231-11/+7
|
* Prefer char8_t strings to char stringsThomas Voss 2024-01-231-5/+5
|
* Properly support UTF-8 in patternsThomas Voss 2024-01-231-29/+37
|
* Allow for only h// to take an empty patternThomas Voss 2024-01-221-3/+20
|
* Remove <assert.h> includeThomas Voss 2024-01-221-2/+0
|
* Implement H//Thomas Voss 2024-01-221-6/+41
|
* Fix memory leaksThomas Voss 2024-01-221-0/+5
|
* Rename the ‘ma’ color to ‘hl’Thomas Voss 2024-01-221-11/+11
|
* Support highlighting matches with h//Thomas Voss 2024-01-221-37/+159
|
* Avoid redefining static_assertThomas Voss 2024-01-221-0/+3
|
* Ignore 0-length matches when using X//Thomas Voss 2024-01-221-4/+7
|
* Change v and y to G and XThomas Voss 2024-01-221-5/+5
|
* Vastly simplify position trackingv1.2.0Thomas Voss 2024-01-211-34/+14
|
* Move common code out into islbrk()Thomas Voss 2024-01-211-8/+14
|
* Formatting fixThomas Voss 2024-01-211-2/+1
|
* Slight refactorThomas Voss 2024-01-211-3/+2
|
* Prefer nullptr to NULLThomas Voss 2024-01-211-1/+1
|
* Support line- & column-based match locationsThomas Voss 2024-01-211-12/+81
|
* Reorganize output writingThomas Voss 2024-01-211-21/+33
|
* Only highlight matches when cflag is setThomas Voss 2024-01-211-1/+1
|
* Print byte-offsets into filesThomas Voss 2024-01-211-6/+27
|
* Remove the ‘struct chars’ typeThomas Voss 2024-01-201-6/+4
|
* Rename occurances of ‘pm’ to ‘rm’Thomas Voss 2024-01-201-24/+24
| | | | ‘regex match’ makes more sense than ‘pattern match’
* Improve handling of the regmatch_t arg to putm()Thomas Voss 2024-01-201-16/+15
|
* Add more color highlightingThomas Voss 2024-01-201-10/+28
|
* Add the -s/--strip-newline flagThomas Voss 2024-01-201-13/+21
|
* Make Clangd/IWYU happyThomas Voss 2024-01-181-2/+2
|
* Remove semicolons from macro definitionsThomas Voss 2024-01-181-2/+2
|
* Fix typoThomas Voss 2024-01-181-1/+1
|
* Compile with REG_DOTALL when -n is not providedThomas Voss 2024-01-181-4/+4
|
* Add support for UTF-8 and UnicodeThomas Voss 2024-01-181-15/+28
|
* Increase emsg buffer sizeThomas Voss 2024-01-181-1/+1
| | | | | 128 should be enough, but the PCRE grep implementation by the grep developers use 256, so that might be a safer bet.
* Decrease macro usageThomas Voss 2024-01-181-4/+4
|
* Terminate the longopts in grab.c with a null rowThomas Voss 2024-01-181-0/+1
|
* Simplify code using libcompatThomas Voss 2024-01-182-5/+27
|
* Remove manual escape handlingThomas Voss 2024-01-181-17/+0
| | | | This is all handled for us by the PCRE2 library
* Wrap -f/--filenames in ‘#if GIT_GRAB’Thomas Voss 2024-01-181-0/+2
|