Skip to content

Commit ba004b6

Browse files
committed
Fix validation of names with end flag. Fix missing lib in cmake file.
1 parent 2cc0088 commit ba004b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/ASTGen/Sources/ASTGen/LexicalLookup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private func flaggingPass(
369369
let sllResult = sllResults[i + sllOffset]
370370

371371
// Check if lookup was stopped earlier. If so, flag this result with lookupStopped.
372-
if wasLookupStopped {
372+
if wasLookupStopped && !(astResult?.isTheEndOfLookup ?? false) {
373373
sllResult.flags.insert(.lookupStopped)
374374
}
375375

lib/CompilerSwiftSyntax/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ includeSwiftSyntax()
3535
set(compiler_swiftsyntax_libs
3636
_CompilerSwiftSyntax
3737
_CompilerSwiftIfConfig
38+
_CompilerSwiftLexicalLookup
3839
_CompilerSwiftOperators
3940
_CompilerSwiftSyntaxBuilder
4041
_CompilerSwiftParser

0 commit comments

Comments
 (0)