summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-08 15:24:48 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-08 15:24:48 +0200
commitcd9c46265e4a12cf716187bc8188c7399797f806 (patch)
tree0cc2bad99620cf39396dcb929d51225745588267 /src/syntax.c
parent87f764a891ff717cd84f361afa5e2220820431e3 (diff)
downloadvim-git-cd9c46265e4a12cf716187bc8188c7399797f806.tar.gz
updated for version 7.3.1148v7.3.1148
Problem: No command line completion for ":syntime". Solution: Implement the completion. (Dominique Pelle)
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index f2df13a3f..323889ef8 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -6577,6 +6577,27 @@ syntime_clear()
}
}
+#if defined(FEAT_CMDL_COMPL) || defined(PROTO)
+/*
+ * Function given to ExpandGeneric() to obtain the possible arguments of the
+ * ":syntime {on,off,clear,report}" command.
+ */
+ char_u *
+get_syntime_arg(xp, idx)
+ expand_T *xp UNUSED;
+ int idx;
+{
+ switch (idx)
+ {
+ case 0: return (char_u *)"on";
+ case 1: return (char_u *)"off";
+ case 2: return (char_u *)"clear";
+ case 3: return (char_u *)"report";
+ }
+ return NULL;
+}
+#endif
+
typedef struct
{
proftime_T total;
@@ -6610,7 +6631,9 @@ syntime_report()
{
int idx;
synpat_T *spp;
+# ifdef FEAT_FLOAT
proftime_T tm;
+# endif
int len;
proftime_T total_total;
int total_count = 0;