Macro expansions allow a space (or even newline) between #
and macro name, as well as @
and attribute name
#1395
Labels
bug
Something isn't working
good first issue
Good for newcomers
SwiftParser
Bugs in the (new) Parser written in Swift
Issue Kind
Other
Source Code
Description
The above examples parse as macro expansion or attribute but shouldn’t be valid. We need to check that the
#
or@
doesn’t contain trailing trivia and the identifier doesn’t contain leading trivia to parse a macro expansion/attribute.The text was updated successfully, but these errors were encountered: