aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.h
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-06 18:56:57 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-08 07:28:46 -0400
commit1a1fe58f7e947abb3c6389a98b17ad54f18c353f (patch)
tree06452611bc576a155eb5707562c4854b09c25fbb /src/nvim/eval.h
parent48e80572855042ceb1d9191bc11f8b60275426eb (diff)
downloadrneovim-1a1fe58f7e947abb3c6389a98b17ad54f18c353f.tar.gz
rneovim-1a1fe58f7e947abb3c6389a98b17ad54f18c353f.tar.bz2
rneovim-1a1fe58f7e947abb3c6389a98b17ad54f18c353f.zip
vim-patch:8.0.1505: debugger can't break on a condition
Problem: Debugger can't break on a condition. (Charles Campbell) Solution: Add ":breakadd expr". (Christian Brabandt, closes vim/vim#859) https://github.com/vim/vim/commit/c6f9f739d32084923c3031cbf6f581f8c8bf7fd2 Do not port "has_watchexpr()" to avoid dead code. "has_watchexpr()" always returns 0 because "debug_expr" is always 0. Restore "eval_expr()" as a wrapper to allocate "typval_T" for "eval0()". Remove it in later patches. Include "typval_compare()" changes from patch v8.1.0958, partially ported in 8b60368c1b9e23f0695557da170d416d71f7e6a3. Close https://github.com/neovim/neovim/pull/12373 N/A patches for version.c: vim-patch:8.2.2720: GTK menu tooltip moves the cursor Problem: GTK menu tooltip moves the cursor. Solution: Position the cursor after displaying the tooltip. Do not show the tooltip when editing the command line. https://github.com/vim/vim/commit/01ac0a1f664c5b1ffd5c9ef196d4b47edf2fd494
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r--src/nvim/eval.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h
index 4f03d5d259..c681660771 100644
--- a/src/nvim/eval.h
+++ b/src/nvim/eval.h
@@ -227,6 +227,19 @@ typedef enum
ASSERT_OTHER,
} assert_type_T;
+/// types for expressions.
+typedef enum {
+ TYPE_UNKNOWN = 0,
+ TYPE_EQUAL, ///< ==
+ TYPE_NEQUAL, ///< !=
+ TYPE_GREATER, ///< >
+ TYPE_GEQUAL, ///< >=
+ TYPE_SMALLER, ///< <
+ TYPE_SEQUAL, ///< <=
+ TYPE_MATCH, ///< =~
+ TYPE_NOMATCH, ///< !~
+} exptype_T;
+
/// Type for dict_list function
typedef enum {
kDictListKeys, ///< List dictionary keys.