Skip to content

Commit 698e5f2

Browse files
authored
legalize plus sign character in USR
1 parent 6cd5209 commit 698e5f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/Symbols/Identifiers/Symbol.Decl.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ extension Symbol.Decl
5757
/// mangled suffix, returning nil if the suffix contains characters
5858
/// that are not allowed to appear in a symbol identifier.
5959
///
60-
/// Valid characters are `_`, `[A-Z]`, `[a-z]`, `[0-9]`, '(', ')', '*', ':', '.', '-', `@`,
61-
/// `#`, and `$`.
60+
/// Valid characters are `_`, `[A-Z]`, `[a-z]`, `[0-9]`, '(', ')', '*', '+', ':', '.', '-',
61+
/// `@`, `#`, and `$`.
6262
@inlinable public
6363
init?(_ language:Language, _ suffix:some StringProtocol)
6464
{
@@ -79,6 +79,7 @@ extension Symbol.Decl
7979
case "(": continue
8080
case ")": continue
8181
case "*": continue
82+
case "+": continue
8283
case "0" ... "9": continue
8384
case "@": continue
8485
case "A" ... "Z": continue

0 commit comments

Comments
 (0)