1 | #ifndef NVIM_REGEXP_H |
2 | #define NVIM_REGEXP_H |
3 | |
4 | #include "nvim/types.h" |
5 | #include "nvim/buffer_defs.h" |
6 | #include "nvim/regexp_defs.h" |
7 | |
8 | // Second argument for vim_regcomp(). |
9 | #define RE_MAGIC 1 ///< 'magic' option |
10 | #define RE_STRING 2 ///< match in string instead of buffer text |
11 | #define RE_STRICT 4 ///< don't allow [abc] without ] |
12 | #define RE_AUTO 8 ///< automatic engine selection |
13 | |
14 | // values for reg_do_extmatch |
15 | #define REX_SET 1 ///< to allow \z\(...\), |
16 | #define REX_USE 2 ///< to allow \z\1 et al. |
17 | #define REX_ALL (REX_SET | REX_USE) |
18 | |
19 | // regexp.c |
20 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
21 | # include "regexp.h.generated.h" |
22 | #endif |
23 | |
24 | #endif // NVIM_REGEXP_H |
25 | |