I created a custom snippet for JavaScript arrow function. A JavaScript arrow function can often be in the following forms:
() => foo
() => {
foo;
bar;
}
foo => foo * 2
foo => {
bar;
return foo * 2;
}
(foo, bar) => foo * bar
Basically, both the parentheses and the curly braces are optional. So I made a snippet like this:

However, when I tab to field 3, the selection doesn’t include the right half of the last curly braces. I don’t know if I did something wrong or it’s a bug?
Thanks!!
(before the first brace on the last line)