Skip to content

Commit 7a8d154

Browse files
committed
[Testing] Fix over-eager regex in IDE/complete_expr_postfix_begin.swift
Don't trip over a keyword just because '[sS]elf' is within the name.
1 parent e96fcee commit 7a8d154

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/IDE/complete_expr_postfix_begin.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ typealias FooTypealias = Int
123123
// COMMON-DAG: Keyword[#column]/None: #column[#Int#]{{; name=.+$}}
124124
// COMMON: End completions
125125

126-
// NO_SELF-NOT: Self
127-
// NO_SELF-NOT: self
126+
// NO_SELF-NOT: {{[[:<:]][Ss]elf[[:>:]]}}
128127

129128
//===--- Test that we can code complete at the beginning of expr-postfix.
130129

0 commit comments

Comments
 (0)