Merge remote-tracking branch 'krobelus/quote-regex-option-value-completions'
This commit is contained in:
commit
79f3f5b046
|
@ -1,5 +1,6 @@
|
|||
#include "regex.hh"
|
||||
#include "ranges.hh"
|
||||
#include "string_utils.hh"
|
||||
|
||||
namespace Kakoune
|
||||
{
|
||||
|
@ -17,9 +18,9 @@ int Regex::named_capture_index(StringView name) const
|
|||
return it != m_impl->named_captures.end() ? it->index : -1;
|
||||
}
|
||||
|
||||
String option_to_string(const Regex& re)
|
||||
String option_to_string(const Regex& re, Quoting quoting)
|
||||
{
|
||||
return re.str();
|
||||
return option_to_string(re.str(), quoting);
|
||||
}
|
||||
|
||||
Regex option_from_string(Meta::Type<Regex>, StringView str)
|
||||
|
|
|
@ -162,7 +162,8 @@ bool backward_regex_search(It begin, It end, It subject_begin, It subject_end,
|
|||
return regex_search<It, RegexMode::Backward>(begin, end, subject_begin, subject_end, res, re, flags, idle_func);
|
||||
}
|
||||
|
||||
String option_to_string(const Regex& re);
|
||||
enum class Quoting;
|
||||
String option_to_string(const Regex& re, Quoting quoting);
|
||||
Regex option_from_string(Meta::Type<Regex>, StringView str);
|
||||
|
||||
template<typename Iterator, RegexMode mode = RegexMode::Forward,
|
||||
|
|
Loading…
Reference in New Issue
Block a user