From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: 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. --- src/nvim/viml/parser/parser.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/viml/parser/parser.h') diff --git a/src/nvim/viml/parser/parser.h b/src/nvim/viml/parser/parser.h index f387301c2d..cd5a493643 100644 --- a/src/nvim/viml/parser/parser.h +++ b/src/nvim/viml/parser/parser.h @@ -1,5 +1,4 @@ -#ifndef NVIM_VIML_PARSER_PARSER_H -#define NVIM_VIML_PARSER_PARSER_H +#pragma once #include #include @@ -227,5 +226,3 @@ static inline void viml_parser_highlight(ParserState *const pstate, const Parser #ifdef INCLUDE_GENERATED_DECLARATIONS # include "viml/parser/parser.h.generated.h" #endif - -#endif // NVIM_VIML_PARSER_PARSER_H -- cgit