summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index 25680f677..33c12f262 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1840,6 +1840,20 @@ skipdigits(p)
return p;
}
+#if defined(FEAT_SYN_HL) || defined(PROTO)
+/*
+ * skip over digits and hex characters
+ */
+ char_u *
+skiphex(p)
+ char_u *p;
+{
+ while (vim_isxdigit(*p)) /* skip to next non-digit */
+ ++p;
+ return p;
+}
+#endif
+
#if defined(FEAT_EX_EXTRA) || defined(PROTO)
/*
* skip to digit (or NUL after the string)