summaryrefslogtreecommitdiff
path: root/src/regex.cc
AgeCommit message (Collapse)Author
2025-07-08Remove uses of Regex in BufferManager by taking a more general filterMaxime Coste
2024-03-22Make CompiledRegex not a RefCountableMaxime Coste
Keep this closer to the point of use, avoid pull ref_ptr.hpp into regex_impl.hpp
2023-11-13Quote completions of regex optionsJohannes Altmanninger
Recent changes to `make_error_pattern` added a space to the default value. This means that set g make_error_pattern <tab> now produces an invalid command because regexes are not quoted. We do quote strings; regexes are not all that different so quote them too.
2019-01-20Try to bypass clang crashMaxime Coste
2019-01-03Add support for named captures to the regex impl and regex highlighterMaxime Coste
ECMAScript is adding support for it, and it is a pretty isolated change to do. Fixes #2293
2018-05-27Refactor option_from_string to return directly the option valueMaxime Coste
2017-12-01Regex: Support forward and backward matching code in the same CompiledRegexMaxime Coste
No need to have two separate regexes to handle forward and backward matching, just passing RegexCompileFlags::Backward will add support for backward matching to the regex. For backward only regex, pass RegexCompileFlags::NoForward as well to disable generation of forward matching code.
2017-11-01Regex: Remove boost related codeMaxime Coste
2017-11-01Make use of custom regex backward searching support for reverse searchMaxime Coste
2017-11-01Regex: Make boost checking disableable at compile timeMaxime Coste
2017-11-01Regex: switch to custom impl, use boost for checkingMaxime Coste
2017-11-01Regex: Introduce RegexExecFlags::PrevAvailableMaxime Coste
Rework assertion code as well.
2017-11-01Regex: remove use of buffer_utils.hh from regex_impl.ccMaxime Coste
2017-11-01Regex: Find potential start position using a map of valid start charsMaxime Coste
With this optimization we get close to performance parity with boost regex on the common use cases in Kakoune.
2017-11-01Regex: validate that our custom impl gets the same results as boost regexMaxime Coste
In addition to running boost regex, run our custom regex and compare the results to ensure the two regex engine agree.
2017-11-01Regex: whenever Kakoune compiles a regex, pass it to the custom impl as wellMaxime Coste
That way we can see which features are missing.
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2016-05-19Go back to libc locale and use c_regex_traitsMaxime Coste
Unfortunately, cygwin does not support c++ locales.
2016-05-10Use boost::wregex implementation and manually utf8 decode into itMaxime Coste
That way we get proper unicode support in regular expressions as long as the current locale treats wchar_t as unicode codepoints. Fixes #638 Fixes #595 Fixes #162
2016-02-04String usage cleanupsMaxime Coste
2015-07-25Tweak regex constructor callsMaxime Coste
2015-07-14Transform boost/std regex_error to Kakoune::regex_error at Regex constructionMaxime Coste
Fixes #318
2015-06-01Port more code to use the format function instead of adhoc string concatMaxime Coste
2015-04-27Replace some String temporaries with StringViewsMaxime Coste
2015-03-10Refactor String, use a common StringOps interface, hide std::stringMaxime Coste
2014-10-13Refactor regex uses, do not reference boost except in regex.hhMaxime Coste