File tree Expand file tree Collapse file tree 6 files changed +39
-3
lines changed Expand file tree Collapse file tree 6 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ sub skip_tags {
141
141
sub is_tags {
142
142
my $line = shift ;
143
143
144
- $line =~ / \A \s * [*] [^*]+ [*] (?: \s + [*] [^*]+ [*] )* (\s + [>])? \Z /xms or return ;
144
+ $line =~ / \A \s * [*] [^*]+ [*] (?: \s + [*] [^*]+ [*] )* (\s + [>] (vim)? )? \Z /xms or return ;
145
145
my $codeblock = $1 ;
146
146
147
147
return { codeblock => $codeblock };
@@ -174,7 +174,7 @@ sub translate_codeblock_with_start_line {
174
174
}
175
175
176
176
sub is_codeblock_start_line {
177
- return shift =~ / \A [>] \Z /xms ;
177
+ return shift =~ / \A [>] (vim)? \Z /xms ;
178
178
}
179
179
180
180
sub translate_paragraph {
@@ -221,7 +221,7 @@ sub translate_paragraph {
221
221
sub parse_paragraph_line {
222
222
my $line = shift ;
223
223
224
- $line =~ / \A (.*?) (\s + [>])? \Z /xms or die " unreachable" ;
224
+ $line =~ / \A (.*?) (\s + [>] (vim)? )? \Z /xms or die " unreachable" ;
225
225
my $content = $1 ;
226
226
my $codeblock = $2 ;
227
227
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ basic15-90123456789012345678901234567890123456789012345678901234567890123456789
20
20
21
21
basic17-901234567890123456789012345678901234567890123456789012345678901234567あ
22
22
---------1---------2---------3---------4---------5---------6---------7---------
23
+
24
+ basic18-1 >vim
25
+ basic18-2
26
+ <
Original file line number Diff line number Diff line change @@ -85,3 +85,15 @@ msgid ""
85
85
msgstr ""
86
86
"BASIC17-901234567890123456789012345678901234567890123456789012345678901234567あ\n"
87
87
"---------1---------2---------3---------4---------5---------6---------7---------"
88
+
89
+ #. type: paragraph
90
+ #: basic.txt:24
91
+ #, no-wrap
92
+ msgid "basic18-1"
93
+ msgstr "BASIC18-1"
94
+
95
+ #. type: codeblock
96
+ #: basic.txt:25
97
+ #, no-wrap
98
+ msgid "basic18-2"
99
+ msgstr "BASIC18-2"
Original file line number Diff line number Diff line change @@ -77,3 +77,15 @@ msgid ""
77
77
"basic17-901234567890123456789012345678901234567890123456789012345678901234567あ\n"
78
78
"---------1---------2---------3---------4---------5---------6---------7---------"
79
79
msgstr ""
80
+
81
+ #. type: paragraph
82
+ #: basic.txt:24
83
+ #, no-wrap
84
+ msgid "basic18-1"
85
+ msgstr ""
86
+
87
+ #. type: codeblock
88
+ #: basic.txt:25
89
+ #, no-wrap
90
+ msgid "basic18-2"
91
+ msgstr ""
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ BASIC15-90123456789012345678901234567890123456789012345678901234567890123456789
20
20
21
21
BASIC17-901234567890123456789012345678901234567890123456789012345678901234567あ
22
22
---------1---------2---------3---------4---------5---------6---------7---------
23
+
24
+ BASIC18-1 >vim
25
+ BASIC18-2
26
+ <
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ basic15-90123456789012345678901234567890123456789012345678901234567890123456789
20
20
21
21
basic17-901234567890123456789012345678901234567890123456789012345678901234567あ
22
22
---------1---------2---------3---------4---------5---------6---------7---------
23
+
24
+ basic18-1 >vim
25
+ basic18-2
26
+ <
You can’t perform that action at this time.
0 commit comments