File tree Expand file tree Collapse file tree 2 files changed +28
-10
lines changed Expand file tree Collapse file tree 2 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 398
398
{
399
399
"include" : " #comments"
400
400
},
401
+ {
402
+ "match" : " \\ binline\\ b" ,
403
+ "name" : " storage.modifier.c3"
404
+ },
401
405
{
402
406
"include" : " #parameters"
403
407
}
1560
1564
"include" : " #comments"
1561
1565
},
1562
1566
{
1563
- "match " : " ([$#]?(?:\\ b_*[a-z][_a-zA-Z0-9]*\\ b)|\\ $(?:\\ b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\ b))\\ s*(:)(?!:)" ,
1564
- "captures " : {
1567
+ "begin " : " ([$#]?(?:\\ b_*[a-z][_a-zA-Z0-9]*\\ b)|\\ $(?:\\ b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\ b))\\ s*(:)(?!:)" ,
1568
+ "beginCaptures " : {
1565
1569
"1" : {
1566
1570
"name" : " variable.parameter.c3"
1567
1571
},
1568
1572
"2" : {
1569
1573
"name" : " punctuation.separator.c3"
1570
1574
}
1571
- }
1575
+ },
1576
+ "end" : " (?=\\ ))|([;,])" ,
1577
+ "endCaptures" : {
1578
+ "1" : {
1579
+ "name" : " punctuation.separator.c3"
1580
+ }
1581
+ },
1582
+ "patterns" : [
1583
+ {
1584
+ "include" : " #expression"
1585
+ }
1586
+ ]
1572
1587
},
1573
1588
{
1574
1589
"include" : " #expression"
1575
1590
},
1576
- {
1577
- "include" : " #punctuation"
1578
- },
1579
1591
{
1580
1592
"match" : " ;" ,
1581
1593
"name" : " punctuation.separator.c3"
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ repository:
196
196
patterns :
197
197
- include : " #comments"
198
198
- match : ' \binline\b'
199
- name : storage.modifier.c3 # TODO
199
+ name : storage.modifier.c3
200
200
- include : " #type_no_generics"
201
201
# Enum parameters
202
202
- begin : ' \('
@@ -208,6 +208,8 @@ repository:
208
208
contentName : meta.group.c3
209
209
patterns :
210
210
- include : " #comments"
211
+ - match : ' \binline\b'
212
+ name : storage.modifier.c3
211
213
- include : " #parameters"
212
214
- include : " #attribute"
213
215
# Enum body
@@ -793,12 +795,16 @@ repository:
793
795
patterns :
794
796
- include : " #comments"
795
797
# Named argument
796
- - match : ' ([$#]?{{IDENT}}|\${{TYPE}})\s*(:)(?!:)' # TODO using \s* doesn't match over multiple lines
797
- captures :
798
+ - begin : ' ([$#]?{{IDENT}}|\${{TYPE}})\s*(:)(?!:)'
799
+ beginCaptures :
798
800
1 : { name: variable.parameter.c3 }
799
801
2 : { name: punctuation.separator.c3 }
802
+ end : ' (?=\))|([;,])'
803
+ endCaptures :
804
+ 1 : { name: punctuation.separator.c3 }
805
+ patterns :
806
+ - include : " #expression"
800
807
- include : " #expression"
801
- - include : " #punctuation"
802
808
- match : ' ;'
803
809
name : punctuation.separator.c3
804
810
You can’t perform that action at this time.
0 commit comments