Skip to content
Commit 7b614e53 authored by ntome's avatar ntome 💬 Committed by hydrargyrum
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment