Skip to content

Commit 66eca19

Browse files
authored
Merge pull request #144 from vim-jp/import-scripts
Import the latest scripts
2 parents f1873bb + c1a4da4 commit 66eca19

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/po/check.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set nowrapscan
3838
" Start at the first "msgid" line.
3939
let wsv = winsaveview()
4040
1
41-
/^msgid\>
41+
keeppatterns /^msgid\>
4242

4343
" When an error is detected this is set to the line number.
4444
" Note: this is used in the Makefile.
@@ -101,7 +101,7 @@ while 1
101101

102102
" Find next msgid. Quit when there is no more.
103103
let lnum = line('.')
104-
silent! /^msgid\>
104+
silent! keeppatterns /^msgid\>
105105
if line('.') == lnum
106106
break
107107
endif
@@ -134,7 +134,7 @@ endfunc
134134
" Check that the \n at the end of the msgid line is also present in the msgstr
135135
" line. Skip over the header.
136136
1
137-
/^"MIME-Version:
137+
keeppatterns /^"MIME-Version:
138138
while 1
139139
let lnum = search('^msgid\>')
140140
if lnum <= 0

src/po/cleanup.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ setl nodiff
1212
silent g/^#, c-format\n#/.d
1313
silent g/^#\..*\n#/.d
1414

15+
" c-format comments have no effect, the check.vim scripts checks it.
16+
" But they might still be useful?
17+
" silent g/^#, c-format$/d
18+
1519
silent g/^#[:~] /d
1620
silent g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
1721
silent g/^msgstr"/s//msgstr "/

0 commit comments

Comments
 (0)