aboutsummaryrefslogtreecommitdiff
path: root/contrib/check-internal-format-escaping.py
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-04-19 09:08:49 +0000
committerChristophe Lyon <clyon@gcc.gnu.org>2019-04-19 11:08:49 +0200
commit4180490732498b1d7e30eb73abb6a7c934b89256 (patch)
treeddd7dd5975cd91534d9a0e591450711fdaa59dea /contrib/check-internal-format-escaping.py
parente7178413f46ac98975bd4b83e073c931b418205d (diff)
downloadgcc-4180490732498b1d7e30eb73abb6a7c934b89256.zip
gcc-4180490732498b1d7e30eb73abb6a7c934b89256.tar.gz
gcc-4180490732498b1d7e30eb73abb6a7c934b89256.tar.bz2
PR translation/90118 Missing space between words
2019-04-19 Christophe Lyon <christophe.lyon@linaro.org> PR translation/90118 contrib/ * check-internal-format-escaping.py: Check that %< is not next to a word. gcc/ * config/aarch64/aarch64.c (aarch64_override_options_internal): Add missing space before %<. From-SVN: r270454
Diffstat (limited to 'contrib/check-internal-format-escaping.py')
-rwxr-xr-xcontrib/check-internal-format-escaping.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/check-internal-format-escaping.py b/contrib/check-internal-format-escaping.py
index aac4f9e..9c62586 100755
--- a/contrib/check-internal-format-escaping.py
+++ b/contrib/check-internal-format-escaping.py
@@ -58,6 +58,10 @@ for i, l in enumerate(lines):
print('%s: %s' % (origin, text))
if re.search("[^%]'", p):
print('%s: %s' % (origin, text))
+ # %< should not be preceded by a non-punctuation
+ # %character.
+ if re.search("[a-zA-Z0-9]%<", p):
+ print('%s: %s' % (origin, text))
j += 1
origin = None