fix(swift) `warn_unqualified_access` is an attribute (#3845)

* Keyword attribute, not number sign

* Add test

* Update CHANGES
This commit is contained in:
Bradley Mackey 2023-08-17 03:58:18 +01:00 committed by GitHub
parent e71d91dabc
commit 12536569dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ Core Grammars:
- fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej][]
- enh(rust) added `eprintln!` macro [qoheniac][]
- enh(leaf) update syntax to 4.0 [Samuel Bishop][]
- fix(swift) `warn_unqualified_access` is an attribute [Bradley Mackey][]
Dev tool:

View File

@ -169,7 +169,6 @@ export const numberSignKeywords = [
'#line',
'#selector',
'#sourceLocation',
'#warn_unqualified_access',
'#warning'
];
@ -314,7 +313,8 @@ export const keywordAttributes = [
'UIApplicationMain',
'unchecked',
'unknown',
'usableFromInline'
'usableFromInline',
'warn_unqualified_access'
];
// Contextual keywords used in @available and #(un)available.

View File

@ -7,5 +7,6 @@
<span class="hljs-keyword">@resultBuilder</span>
<span class="hljs-keyword">@Sendable</span>
<span class="hljs-keyword">@unchecked</span>
<span class="hljs-keyword">@warn_unqualified_access</span>
@ notAnAttribute

View File

@ -7,5 +7,6 @@
@resultBuilder
@Sendable
@unchecked
@warn_unqualified_access
@ notAnAttribute