chiark / gitweb /
i18n: i18n-diff-auditor: fix multi-arg handling
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Sep 2018 20:21:40 +0000 (21:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Sep 2018 23:54:38 +0000 (00:54 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
i18n-diff-auditor

index e8c86fe..61f877e 100755 (executable)
@@ -267,9 +267,11 @@ sub analyse_chunk_core () {
                    }
                    $next_y->();
                    if (!$bras and
-                       (grep { $y->{E} eq $_ } qw( or xor and not ; : )
+                       (grep { $y->{E} eq $_ } qw( or xor and not ; : )
                         or $y->{T} eq 'ket'
                        )) {
+                       # lookahead shows close of containing scope
+                       # or lower precedence operator
                        unshift @ys, $y;
                        last;
                    }