patch 9.1.1232: Vim script is missing the tuple data type
Problem: Vim script is missing the tuple data type
Solution: Add support for the tuple data type
(Yegappan Lakshmanan)
closes: #16776
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/globals.h b/src/globals.h
index ef78b44..7e65af3 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -549,7 +549,14 @@
#define t_typealias (static_types[90])
#define t_const_typealias (static_types[91])
-EXTERN type_T static_types[92]
+#define t_tuple_any (static_types[92])
+#define t_const_tuple_any (static_types[93])
+
+#define t_tuple_empty (static_types[94])
+#define t_const_tuple_empty (static_types[95])
+
+
+EXTERN type_T static_types[96]
#ifdef DO_INIT
= {
// 0: t_unknown
@@ -735,6 +742,14 @@
// 90: t_typealias
{VAR_TYPEALIAS, 0, 0, TTFLAG_STATIC, NULL, NULL, NULL},
{VAR_TYPEALIAS, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL},
+
+ // 92: t_tuple_any
+ {VAR_TUPLE, -1, 0, TTFLAG_STATIC, NULL, NULL, NULL},
+ {VAR_TUPLE, -1, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL},
+
+ // 94: t_tuple_empty
+ {VAR_TUPLE, 0, 0, TTFLAG_STATIC, NULL, NULL, NULL},
+ {VAR_TUPLE, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL},
}
#endif
;