From 6262f5903664c950d09e657319abcac54a191917 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 13 Nov 2024 19:37:26 +0000 Subject: [PATCH] fix: Allow whitespaces in cxx attributes --- src/parser/cxx/parser.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/parser/cxx/parser.cc b/src/parser/cxx/parser.cc index 66abe329..9723f16b 100644 --- a/src/parser/cxx/parser.cc +++ b/src/parser/cxx/parser.cc @@ -8492,7 +8492,6 @@ auto Parser::parse_attribute_specifier(AttributeSpecifierAST*& yyast, auto Parser::lookat_cxx_attribute_specifier() -> bool { if (!lookat(TokenKind::T_LBRACKET)) return false; if (LA(1).isNot(TokenKind::T_LBRACKET)) return false; - if (LA(1).leadingSpace() || LA(1).startOfLine()) return false; return true; }