From: Richard Si <63936253+ichard26@users.noreply.github.com>
Date: Tue, 4 May 2021 08:46:46 +0000 (-0400)
Subject: Detect `'@' dotted_name '(' ')' NEWLINE` as a simple decorator (#2182)
X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/e42f9921e291790202147c1e3dc1a3df7036c652?hp=e42f9921e291790202147c1e3dc1a3df7036c652

Detect `'@' dotted_name '(' ')' NEWLINE` as a simple decorator (#2182)

Previously the RELAXED_DECORATOR detection would be falsely True on that
example. The problem was that an argument-less parentheses pair didn't
pass the `is_simple_decorator_trailer` check even it should. OTOH a
parentheses pair containing an argument or more passed as expected.
---