aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-07-31 15:55:01 +0200
committerGitHub <noreply@github.com>2022-07-31 15:55:01 +0200
commit68ec497d52bc8e93e12c74099ee9826b9469c3be (patch)
tree7baab4d6c3644125835ffa24ae0948ce4327d393 /src/nvim/syntax.c
parent86110ec93303a80ea14561d3976214ca27f0be63 (diff)
parent824a729628950d72834b98faf28d18b7a94eefb2 (diff)
downloadrneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.tar.gz
rneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.tar.bz2
rneovim-68ec497d52bc8e93e12c74099ee9826b9469c3be.zip
Merge pull request #19437 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index ec68e215c5..3c37dbe450 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -227,12 +227,10 @@ static int current_sub_char = 0;
#define MAX_SYN_INC_TAG 999 // maximum before the above overflow
#define MAX_CLUSTER_ID (32767 - SYNID_CLUSTER)
-/*
- * Annoying Hack(TM): ":syn include" needs this pointer to pass to
- * expand_filename(). Most of the other syntax commands don't need it, so
- * instead of passing it to them, we stow it here.
- */
-static char_u **syn_cmdlinep;
+// Annoying Hack(TM): ":syn include" needs this pointer to pass to
+// expand_filename(). Most of the other syntax commands don't need it, so
+// instead of passing it to them, we stow it here.
+static char **syn_cmdlinep;
/*
* Another Annoying Hack(TM): To prevent rules from other ":syn include"'d
@@ -5602,7 +5600,7 @@ void ex_syntax(exarg_T *eap)
char_u *arg = (char_u *)eap->arg;
char_u *subcmd_end;
- syn_cmdlinep = (char_u **)eap->cmdlinep;
+ syn_cmdlinep = eap->cmdlinep;
// isolate subcommand name
for (subcmd_end = arg; ASCII_ISALPHA(*subcmd_end); subcmd_end++) {}