File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
[[[@HELLOOOO]]]
12
12
13
- [[[Category:UI Control, Instruction:アプリのチュートリアルに入るので、柔らかめにお願いします. 次の URL でスクリーンショットを参照してください。 , Context:http://dropbox.com/public/screenshot1.png]]]
13
+ [[[Category:UI Control, Instruction:アプリのチュートリアルに入るので、
14
+ 柔らかめにお願いします. 次の URL でスクリーンショットを参照してください。 , Context:http://dropbox.com/public/screenshot1.png]]]
14
15
15
16
こんにちwa!
16
17
Original file line number Diff line number Diff line change 1
1
open ( ARGV [ 0 ] ) { |f |
2
2
parsing = false
3
+ ignore_mode = false
3
4
key = ""
4
5
body = Array . new
5
6
f . each { |line |
9
10
if md = line . match ( /(\/ @\w +)/ )
10
11
puts '"' + key + '" = "' + body . join ( '\n' ) + '";'
11
12
parsing = false
12
- else
13
- unless line . match ( /\[ \[ \[ .*\] \] \] / )
14
- body << line
15
- end
16
13
end
14
+ if line . match ( /\[ \[ \[ .*/ )
15
+ ignore_mode = true
16
+ end
17
+ if line . match ( /.*\] \] \] / )
18
+ ignore_mode = false
19
+ next
20
+ end
21
+ body << line unless ignore_mode
17
22
else
18
23
if md = line . match ( /(@\w +)/ )
19
24
body = Array . new
You can’t perform that action at this time.
0 commit comments