diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-16 16:41:19 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-16 16:41:29 -0500 |
commit | 3056ff4b8c39ea0679a564760c607021df4ad14f (patch) | |
tree | 16b7dc642c1120d58e68ad2cd77ef6252b9d27c5 /src | |
parent | b83027858af71e5ca976c3b43e0b798c624f5529 (diff) | |
download | rneovim-3056ff4b8c39ea0679a564760c607021df4ad14f.tar.gz rneovim-3056ff4b8c39ea0679a564760c607021df4ad14f.tar.bz2 rneovim-3056ff4b8c39ea0679a564760c607021df4ad14f.zip |
vim-patch:8.1.2305: no warning for wrong entry in translations
Problem: No warning for wrong entry in translations.
Solution: Check semicolons in keywords entry of desktop file.
https://github.com/vim/vim/commit/e53ec39270c805a95e405812e4c463c87a150eda
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/po/check.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/po/check.vim b/src/nvim/po/check.vim index eae27ef74d..650c6155e2 100644 --- a/src/nvim/po/check.vim +++ b/src/nvim/po/check.vim @@ -47,6 +47,17 @@ let wsv = winsaveview() let error = 0 while 1 + let lnum = line('.') + if getline(lnum) =~ 'msgid "Text;.*;"' + if getline(lnum + 1) !~ '^msgstr "\([^;]\+;\)\+"' + echomsg 'Mismatching ; in line ' . (lnum + 1) + echomsg 'Did you forget the trailing semicolon?' + if error == 0 + let error = lnum + 1 + endif + endif + endif + if getline(line('.') - 1) !~ "no-c-format" " go over the "msgid" and "msgid_plural" lines let prevfromline = 'foobar' |