File tree Expand file tree Collapse file tree 4 files changed +319
-321
lines changed Expand file tree Collapse file tree 4 files changed +319
-321
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ repository:
2929 match : \\u\{[a-fA-F0-9]{1,6}\}
3030
3131 param_list :
32- begin : ' ([a-zA-Z_][a-zA-Z0-9_]*|@\".+\")\s*(:)\s*'
32+ begin : ' (?<=\(|,)\s*( [a-zA-Z_][a-zA-Z0-9_]*|@\".+\")\s*(:)\s*'
3333 beginCaptures :
3434 ' 1 ' :
3535 name : variable.parameter.zig
@@ -46,11 +46,11 @@ repository:
4646 name : punctuation.section.parens.end.zig
4747
4848 patterns :
49+ - include : ' #main'
50+
4951 - match : ' ([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\")'
5052 name : storage.type.zig
5153
52- - include : ' #main'
53-
5454 field_decl :
5555 begin : ' ([a-zA-Z_][a-zA-Z0-9_]*|@\".+\")\s*(:)\s*'
5656 beginCaptures :
@@ -290,7 +290,7 @@ repository:
290290 - include : ' #param_list'
291291 - include : ' #main'
292292
293- - match : ' ([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\")'
293+ - match : ' ([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\")(?=;) '
294294 name : storage.type.zig
295295
296296 function_call :
@@ -346,10 +346,9 @@ repository:
346346
347347 main :
348348 patterns :
349- - include : ' #field_decl '
349+ - include : ' #label '
350350 - include : ' #function_type'
351351 - include : ' #var_decl'
352- - include : ' #label'
353352 - include : ' #punctuation'
354353 - include : ' #storage_modifier'
355354 - include : ' #container_decl'
Original file line number Diff line number Diff line change 334334 </dict >
335335 <dict >
336336 <key >match </key >
337- <string >([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\") </string >
337+ <string >([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\")(?=;) </string >
338338 <key >name </key >
339339 <string >storage.type.zig </string >
340340 </dict >
452452 <array >
453453 <dict >
454454 <key >include </key >
455- <string >#field_decl </string >
455+ <string >#label </string >
456456 </dict >
457457 <dict >
458458 <key >include </key >
462462 <key >include </key >
463463 <string >#var_decl </string >
464464 </dict >
465- <dict >
466- <key >include </key >
467- <string >#label </string >
468- </dict >
469465 <dict >
470466 <key >include </key >
471467 <string >#punctuation </string >
579575 <key >param_list </key >
580576 <dict >
581577 <key >begin </key >
582- <string >([a-zA-Z_][a-zA-Z0-9_]*|@\".+\")\s*(:)\s* </string >
578+ <string >(? < =\(|,)\s*( [a-zA-Z_][a-zA-Z0-9_]*|@\".+\")\s*(:)\s* </string >
583579 <key >beginCaptures </key >
584580 <dict >
585581 <key >1 </key >
615611 </dict >
616612 <key >patterns </key >
617613 <array >
614+ <dict >
615+ <key >include </key >
616+ <string >#main </string >
617+ </dict >
618618 <dict >
619619 <key >match </key >
620620 <string >([a-zA-Z_][a-zA-Z0-9_.]*|@\".+\") </string >
621621 <key >name </key >
622622 <string >storage.type.zig </string >
623623 </dict >
624- <dict >
625- <key >include </key >
626- <string >#main </string >
627- </dict >
628624 </array >
629625 </dict >
630626 <key >punctuation </key >
You can’t perform that action at this time.
0 commit comments