diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-03 22:52:15 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-03 22:55:50 +1100 |
| commit | 328c497be248faf4e13aaececaf849c844c59efe (patch) | |
| tree | eb3d225fc81389afc8938593f065cf715804d75d /src/regex.hh | |
| parent | 56ee329d79d076742e60c10974c471cc8119ed05 (diff) | |
Add support for named captures to the regex impl and regex highlighter
ECMAScript is adding support for it, and it is a pretty isolated
change to do.
Fixes #2293
Diffstat (limited to 'src/regex.hh')
| -rw-r--r-- | src/regex.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regex.hh b/src/regex.hh index aac66921..4d7cc5f0 100644 --- a/src/regex.hh +++ b/src/regex.hh @@ -21,6 +21,7 @@ public: const String& str() const { return m_str; } size_t mark_count() const { return m_impl->save_count / 2 - 1; } + int named_capture_index(StringView name) const; static constexpr const char* option_type_name = "regex"; |
