diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e9ce69fa..c0c0596dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.7 + rev: v20.1.0 hooks: - id: clang-format types_or: [c++, c] diff --git a/test/lexer_test.cpp b/test/lexer_test.cpp index 715c46081..0189699bb 100644 --- a/test/lexer_test.cpp +++ b/test/lexer_test.cpp @@ -293,7 +293,10 @@ int TEST_NAME(int, char**) { "'wonder'+0 : 'prowonderbread'+3 --> 6"); // Test all Lexer types. -#define NO {"", Lexer::Type::word} +#define NO \ + { \ + "", Lexer::Type::word \ + } struct { const char* input; struct {