[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:
Rintaro Ishizaki
2018-05-22 13:40:47 +09:00
parent 4c11cf964a
commit 4a247efc0a
5 changed files with 20 additions and 32 deletions

View File

@@ -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
},