mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Parse label in tuple type as tok::identifier
Made an utility method 'consumeArgumentLabel', and use it for: * Labels in tuple type * Labels in tuple expression * Argument and parameter names in parameter clause
This commit is contained in:
@@ -474,7 +474,7 @@
|
||||
key.length: 1
|
||||
},
|
||||
{
|
||||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||||
key.offset: 910,
|
||||
key.length: 7
|
||||
},
|
||||
@@ -489,7 +489,7 @@
|
||||
key.length: 4
|
||||
},
|
||||
{
|
||||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||||
key.offset: 937,
|
||||
key.length: 2
|
||||
},
|
||||
@@ -514,7 +514,7 @@
|
||||
key.length: 6
|
||||
},
|
||||
{
|
||||
key.kind: source.lang.swift.syntaxtype.keyword,
|
||||
key.kind: source.lang.swift.syntaxtype.identifier,
|
||||
key.offset: 971,
|
||||
key.length: 2
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user