diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-05 21:13:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 21:13:53 +0200 |
commit | 371823d407d7d7519735131bcad4670c62a731a7 (patch) | |
tree | b303ffd5d01f6bcb447b0c783de294dd3bac4914 /src/nvim/syntax.c | |
parent | 2612930a092736a2f507e06475634346582f8ae1 (diff) | |
download | rneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.gz rneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.bz2 rneovim-371823d407d7d7519735131bcad4670c62a731a7.zip |
refactor: make error message definitions const
message.c functions now take const char * as a format. Error message
definitions can be made const.
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 14fef19399..c0bb7d726e 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -58,7 +58,7 @@ static bool did_syntax_onoff = false; #define SPO_LC_OFF 6 // leading context offset #define SPO_COUNT 7 -static char e_illegal_arg[] = N_("E390: Illegal argument: %s"); +static const char e_illegal_arg[] = N_("E390: Illegal argument: %s"); // The patterns that are being searched for are stored in a syn_pattern. // A match item consists of one pattern. |