aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-30 19:52:23 +0800
committerGitHub <noreply@github.com>2023-11-30 19:52:23 +0800
commitc8e37a589a4bffbdf374a5893ef269d2fe233ce6 (patch)
tree187293673d04522398bf79dfa743596d26d455b7 /src/nvim/regexp_defs.h
parent3b6dd8608d05aea4144cf05730e7b6c6db6052e8 (diff)
downloadrneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.tar.gz
rneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.tar.bz2
rneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.zip
refactor(IWYU): move typedefs out of globals.h (#26322)
Diffstat (limited to 'src/nvim/regexp_defs.h')
-rw-r--r--src/nvim/regexp_defs.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/nvim/regexp_defs.h b/src/nvim/regexp_defs.h
index 079f3b6929..31bc0e86e8 100644
--- a/src/nvim/regexp_defs.h
+++ b/src/nvim/regexp_defs.h
@@ -33,18 +33,22 @@ typedef enum {
MAGIC_ALL = 4, ///< "\v" very magic
} magic_T;
-/// The number of sub-matches is limited to 10.
-/// The first one (index 0) is the whole match, referenced with "\0".
-/// The second one (index 1) is the first sub-match, referenced with "\1".
-/// This goes up to the tenth (index 9), referenced with "\9".
-enum { NSUBEXP = 10, };
+enum {
+ /// The number of sub-matches is limited to 10.
+ /// The first one (index 0) is the whole match, referenced with "\0".
+ /// The second one (index 1) is the first sub-match, referenced with "\1".
+ /// This goes up to the tenth (index 9), referenced with "\9".
+ NSUBEXP = 10,
+};
-/// In the NFA engine: how many braces are allowed.
-/// TODO(RE): Use dynamic memory allocation instead of static, like here
-enum { NFA_MAX_BRACES = 20, };
+enum {
+ /// In the NFA engine: how many braces are allowed.
+ /// TODO(RE): Use dynamic memory allocation instead of static, like here
+ NFA_MAX_BRACES = 20,
+};
-/// In the NFA engine: how many states are allowed.
enum {
+ /// In the NFA engine: how many states are allowed.
NFA_MAX_STATES = 100000,
NFA_TOO_EXPENSIVE = -1,
};