diff options
author | dundargoc <gocdundar@gmail.com> | 2023-11-10 12:23:42 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-12 22:01:28 +0100 |
commit | 4f8941c1a5f1ef6caa410feeb52e343db22763ce (patch) | |
tree | 6e801079d088533198d526cb9aac8eb7981dc568 /src/nvim/syntax_defs.h | |
parent | 353a4be7e84fdc101318215bdcc8a7e780d737fe (diff) | |
download | rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.tar.gz rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.tar.bz2 rneovim-4f8941c1a5f1ef6caa410feeb52e343db22763ce.zip |
refactor: replace manual header guards with #pragma once
It is less error-prone than manually defining header guards. Pretty much
all compilers support it even if it's not part of the C standard.
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r-- | src/nvim/syntax_defs.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h index 218cd3623d..ae4997154e 100644 --- a/src/nvim/syntax_defs.h +++ b/src/nvim/syntax_defs.h @@ -1,5 +1,4 @@ -#ifndef NVIM_SYNTAX_DEFS_H -#define NVIM_SYNTAX_DEFS_H +#pragma once #include "nvim/highlight_defs.h" @@ -59,5 +58,3 @@ struct syn_state { linenr_T sst_change_lnum; // when non-zero, change in this line // may have made the state invalid }; - -#endif // NVIM_SYNTAX_DEFS_H |