Skip to content

Commit e7fe537

Browse files
committed
[libSyntax] Classify pound directives as build config keywords
1 parent 0500e65 commit e7fe537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Syntax/SyntaxClassifier.cpp.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ getContextFreeClassificationForToken(TokenSyntax TokenNode) {
5656
#define POUND_KEYWORD(KW) case tok::pound_##KW: return SyntaxClassification::Keyword;
5757
#define POUND_OBJECT_LITERAL(KW, desc, proto) case tok::pound_##KW: return SyntaxClassification::ObjectLiteral;
5858
#define POUND_DIRECTIVE_KEYWORD(KW) case tok::pound_##KW: return SyntaxClassification::PoundDirectiveKeyword;
59-
#define POUND_COND_DIRECTIVE_KEYWORD(KW) case tok::pound_##KW: return SyntaxClassification::PoundDirectiveKeyword;
59+
#define POUND_COND_DIRECTIVE_KEYWORD(KW) case tok::pound_##KW: return SyntaxClassification::BuildConfigKeyword;
6060
#include "swift/Syntax/TokenKinds.def"
6161
// Punctuators
6262
case tok::l_paren:

0 commit comments

Comments
 (0)