tools/hooks/check-trailing-commas: support parentheses around element
This was rejected: [ (a), ] because last token of last element is "a", not ")". So we have to skip closing parentheses before reaching the trailing comma. Also, simply use "generic_visit" instead of calling "visit" on sub nodes ourselves.
parent
f0f47d8b
Please register or sign in to comment