1
0
Fork 0
mirror of https://github.com/Reuh/sublime-candran.git synced 2025-10-27 10:09:31 +00:00

Short function with varags as sole argument

This commit is contained in:
Étienne Fildadut 2019-08-18 17:05:23 +02:00
parent db55c7d463
commit aaeb092769

View file

@ -25,7 +25,7 @@ variables:
identifier_raw: (?:{{identifier_start}}{{identifier_char}}*) identifier_raw: (?:{{identifier_start}}{{identifier_char}}*)
identifier: (?:(?!{{reserved_word}}){{identifier_raw}}) identifier: (?:(?!{{reserved_word}}){{identifier_raw}})
short_function_begin: (?:\:(?=\()|(?=\(\))|(?=\({{identifier}}[=,\)])) short_function_begin: (?:\:(?=\()|(?=\(\))|(?=\(\s*\.\.\.\s*\))|(?=\({{identifier}}[=,\)]))
function_args_begin: (?:\(|"|'|\[=*\[|\{) function_args_begin: (?:\(|"|'|\[=*\[|\{)
function_call_ahead: (?=\s*{{function_args_begin}}) function_call_ahead: (?=\s*{{function_args_begin}})
function_assignment_ahead: (?=\s*=\s*(?:function|{{short_function_begin}}){{identifier_break}}) function_assignment_ahead: (?=\s*=\s*(?:function|{{short_function_begin}}){{identifier_break}})