summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-08-22index: embarking on a most ambitious project...ag/indexAndrew Gallant
2022-07-18ignore/types: improve 'markdown' and 'php' typesMalte
This adds some lesser known extensions. Notably, it adds php7 and php8, but not php6. Apparently, php6 was never a thing: https://wiki.php.net/rfc/php6 PR #2263
2022-07-15doc: appease rustdocAndrew Gallant
2022-07-15grep-0.2.10grep-0.2.10Andrew Gallant
2022-07-15grep: bump grep-searcher to 0.1.10Andrew Gallant
This was a result of leaving a stray 'dbg!'.
2022-07-15grep-searcher-0.1.10grep-searcher-0.1.10Andrew Gallant
2022-07-15searcher: remove stray 'dbg!'Andrew Gallant
2022-07-15grep-0.2.9grep-0.2.9Andrew Gallant
2022-07-15grep: bump 'grep-regex' and 'grep-searcher'Andrew Gallant
To 0.1.10 and 0.1.9, respectively.
2022-07-15grep-searcher-0.1.9grep-searcher-0.1.9Andrew Gallant
2022-07-15searcher: bump grep-regex dep to 0.1.10Andrew Gallant
2022-07-15grep-regex-0.1.10grep-regex-0.1.10Andrew Gallant
2022-07-15regex: fix matching bug when text anchors are usedAndrew Gallant
It turns out that if there are text anchors (that is, \A or \z, or ^/$ when multi-line is disabled), then the "fast" line searching path isn't quite correct. Since searching without multi-line mode is exceptionally rare, we just look for the presence of text anchors and specifically disable the line terminator option in 'grep-regex'. This in turn inhibits the "fast" line searching path. Fixes #2260
2022-07-14ci: switch to dtolnay/rust-toolchainAndrew Gallant
The actions-rs/toolchain project appears dead. dtolnay's also seems more sustainable given its simplicity, but it does enough to suit our needs.
2022-07-07ignore/types: add dts to default typestleb
See: https://devicetree-specification.readthedocs.io/en/v0.3/source-language.html PR #2255
2022-06-26doc: fix typozhimoe
PR #2248
2022-06-24doc: fix typosKian-Meng Ang
PR #2245
2022-06-14ignore: fix gitignore parsing bug for trailing \/Andrew Gallant
When a glob pattern ended with a \/, and since we permit backslash escapes, the glob parser gave a "dangling escape" error. Which is weird, because the \ is clearly not dangling. The issue is that the layer above the glob parser, the gitignore parser, was stripping the trailing / so that it wouldn't be part of the matching logic. Of course, stripping the trailing / while it is escaped without removing the backslash escape is wrong. So we do that here. Fixes #2236
2022-06-11globset/readme: update version number and some linksAlex Touchet
PR #2232
2022-06-10deps: update to globset 0.4.9Andrew Gallant
2022-06-10globset-0.4.9globset-0.4.9Andrew Gallant
2022-06-10globset: make 'log' an optional featureSergio Benitez
PR #1910
2022-06-10deps: update to packed_simd_2 0.3.8Andrew Gallant
It broke on latest nightly. I'm *very* close to just removing the 'simd-accel' feature altogether. Fixes #2230
2022-06-08ignore/types: add pantsjgart
See: https://www.pantsbuild.org/ PR #2228
2022-05-22ignore/types: add hare to default typesjpe90
PR #2219
2022-05-11printer: fix duplicative replacement in multiline modeAndrew Gallant
This furthers our kludge of dealing with PCRE2's look-around in the printer. Because of our bad abstraction boundaries, we added a kludge to deal with PCRE2 look-around by extending the bytes we search by a fixed amount to hopefully permit any look-around to operate. But because of that kludge, we wind up over extending ourselves in some cases and dragging along those extra bytes. We had fixed this for simple searching by simply rejecting any matches past the end point. But we didn't do the same for replacements. So this commit extends our kludge to replacements. Thanks to @sonohgong for diagnosing the problem and proposing a fix. I mostly went with their solution, but adding the new replacement routine as an internal helper rather than a new APIn in the 'grep-matcher' crate. Fixes #2095, Fixes #2208
2022-05-09ignore/types: improve Bazel globsKeith Smiley
MODULE.bazel is a new file, and WORKSPACE.bazel was always supported similar to BUILD.bazel vs BUILD. PR #2203
2022-05-09cargo: use SPDX license format for all cratesAlex Touchet
This was done for the main crate in d11a3b33773620bcc593f82b557757f0c2ec8a05. See also #987. PR #2204
2022-04-25ignore/types: add '*.hh' to C++ headersConrad Meyer
Like .hpp, .hh is an occasionally used extension for C++ headers (to distinguish them from C headers). At least one popular project, FreeBSD, uses this extension. See also: https://docs.fileformat.com/programming/hh/ PR #2192
2022-04-19ignore/types: add '*.asp' for asp typeMatrix Dai
The `*.asp` was not included in the type "asp" when it was added. https://github.com/BurntSushi/ripgrep/pull/1134 PR #2188
2022-03-21deps: bump memmap2 to 0.5Andrew Gallant
Looking at the memmap2 CHANGELOG, there don't appear to be any breaking changes that impact us.
2022-03-21deps: update everythingAndrew Gallant
Surprisingly looks like no new dependencies were added! Yay! And we removed an extra copy of 'cfg-if' due to what appears to be an updated in 'packed_simd_2'. Otherwise, all updates appear to be minor things.
2022-03-21warnings: remove/tweak some dead codeAndrew Gallant
It looks like the dead code detector got better, so do a little code cleanup.
2022-03-21ci: fix failing nightly-arm build on ci workflowarcsi42
This commit updates the Ubuntu install script to include brotli and zstd, which are needed for tests. We also fix the Ubuntu install script to work in environments that don't have 'sudo'. Instead of creating a totally separate script, we preserve a single point of truth for these things and just make the script a bit more flexible. NOT seen in this commit is that we have built and updated the arm Docker image. I'm hoping this fixes the GLIBC version issues we're seeing in CI. Fixes #2130, Closes #2132
2021-11-22doc: transcoding is done in addition to searchMateusz Konieczny
Even if transcoding would be faster than search it would still incur performance penalty. We make this clearer by tweaking the wording. PR #2079
2021-11-15cli: improve configuration failure modemi-wada
This improves the error message printed when ripgrep can't read the file path pointed to by RIPGREP_CONFIG_PATH. Specifically, before this change: $ RIPGREP_CONFIG_PATH=no_exist_path rg 'search regex' no_exist_path: No such file or directory (os error 2) And now after this change: $ RIPGREP_CONFIG_PATH=no_exist_path rg 'search regex' failed to read the file specified in RIPGREP_CONFIG_PATH: no_exist_path: No such file or directory (os error 2) In the above examples, the first failure mode looks obvious, but that's only because RIPGREP_CONFIG_PATH is being set at the same time that we run the command. Often, the environment variable is set elsewhere and the error message could be confusing outside of that context. Closes #1990
2021-11-15ignore/types: add fenneljgart
https://fennel-lang.org/ PR #2069
2021-11-12ignore: if require_git is false, don't stat .gitJosh Triplett
I've confirmed via strace that this eliminates a pile of stat calls. PR #2052
2021-10-27ignore/types: improve 'vim' and 'vimscript' typesLinda_pp
This adds various Vim config files to the glob patterns. PR #2044
2021-10-24ignore/types: add lilypondjgart
This adds file detection for lilypond: https://lilypond.org/ PR #2038
2021-10-22ignore/types: add hyjgart
This adds file detection for hy: http://hylang.org/ PR #2033
2021-10-19ignore/types: fix futhark type extensionPhilip Munksgaard
Previously, the 'fut' type only matches files called '.fut', while in reality we want to match all files with the '.fut' extension. This commit fixes that issue. PR #2027
2021-10-14ignore/types: add janetjgart
This adds file detection for janet: https://janet-lang.org/ PR #2018
2021-10-12readme: update install commands for Debian/UbuntuMarkus Dosch
This got overlooked during the last release. PR #2016
2021-07-21doc: add -F/--fixed-strings to "common options"Dash
#607 is the top result for the search "ripgrep disable regex". I think it makes sense to add it to the user guide, since it's a very useful flag. PR #1945
2021-07-19doc: --field-match-separator's default value is ':'Andrew Gallant
The docs were out of sync with the implementation. Likely a copy-and-paste error. Fixes #1939
2021-07-14doc: fix typo "used" -> "use"Joe Lencioni
PR #1936
2021-07-13ignore/types: add texinfojgart
https://www.gnu.org/software/texinfo/ PR #1934
2021-06-30ignore/types: add CUDAEyal
Fixes #1918
2021-06-26changelog: add #1911 bug fixAndrew Gallant