Skip to content

Commit d9d582d

Browse files
committed
주석 스타일 변경
1 parent 495d449 commit d9d582d

File tree

1 file changed

+31
-34
lines changed

1 file changed

+31
-34
lines changed

plugin/iamroot_comment.vim

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
" http://iamroot.org
1919
" =======================================================
2020

21-
let s:teamName = "Iamroot ARM Kernel 분석 12차 D조"
21+
let s:teamName = "IAMROOT-12D"
2222
let s:teamLink = "http://www.iamroot.org"
2323
let s:authors = {
24-
\ 1: { 'att': 1, 'name': '곽희범', 'email': '[email protected]' },
24+
\ 1: { 'att': 1, 'name': '곽희범', 'email': '[email protected]' },
2525
\ 2: { 'att': 1, 'name': '임채훈', 'email': '[email protected]' },
2626
\ 3: { 'att': 1, 'name': '한대현', 'email': '[email protected]' },
2727
\ 4: { 'att': 1, 'name': '민혜미', 'email': '[email protected]' },
@@ -34,7 +34,7 @@ let s:authors = {
3434
\ 11: { 'att': 1, 'name': '곽승준', 'email': '[email protected]' },
3535
\ 12: { 'att': 1, 'name': '배병휴', 'email': '[email protected]' },
3636
\ 13: { 'att': 1, 'name': '김영준', 'email': '[email protected]' },
37-
\ 14: { 'att': 1, 'name': '박종성', 'email': '[email protected]' },
37+
\ 14: { 'att': 1, 'name': '박종성', 'email': '@minidump' },
3838
\ 15: { 'att': 1, 'name': '박병배', 'email': '[email protected]' },
3939
\ 16: { 'att': 1, 'name': '안종찬', 'email': '[email protected]' },
4040
\ 17: { 'att': 1, 'name': '이상선', 'email': '[email protected]' },
@@ -131,42 +131,43 @@ endfunction
131131
" Name: s:StartComments
132132
" Brief: 주석 시작부
133133
function s:StartComments()
134+
let l:date = s:GetDate()
134135
exec "normal O"
135-
exec "normal I" . "/* ==================================================================" . s:cr
136+
exec "normal I" . "/* ". s:teamName . " (" . l:date . "):" . s:cr
136137
endfunction
137138

138139
" Name: s:BarComments
139140
" Brief: 주석 바
140141
function s:BarComments()
141-
exec "normal I" . " * ------------------------------------------------------------------" . s:cr
142+
exec "normal I" . " * --------------------------" . s:cr
142143
endfunction
143144

144145
" Name: s:EndComments
145146
" Brief: 주석 마무리부
146147
function s:EndComments()
147-
exec "normal I" . " * ==================================================================" . s:cr
148-
exec "normal I" . " */"
149-
exec "normal w"
148+
exec "normal I" . " */"
149+
exec "normal w"
150150
endfunction
151151

152152

153153
" Name: IC_FileSummary
154154
" Brief: 파일의 요약정보를 주석으로 남긴다.
155155
function IC_FileSummary()
156-
let l:todo = "todo"
156+
let l:todo = "todo"
157157
let l:filePath = s:GetProjectFilePath()
158-
let l:date = s:GetDate()
159-
let l:team = s:GetTeamInfo()
158+
let l:date = s:GetDate()
159+
let l:team = s:GetTeamInfo()
160160

161161
exec "normal gg"
162162
call s:StartComments()
163-
exec "normal I" . " * 파일명: " . l:filePath . s:cr
164-
exec "normal I" . " *" . s:cr
165-
exec "normal I" . " * 요약: " . l:todo . s:cr
166-
exec "normal I" . " * 설명: " . l:todo . s:cr
167-
exec "normal I" . " *" . s:cr
168-
exec "normal I" . " * 팀: " . l:team . s:cr
169-
exec "normal I" . " * 날짜: " . l:date . s:cr
163+
call s:BarComments()
164+
exec "normal I" . " * 파일명: " . l:filePath . s:cr
165+
exec "normal I" . " *" . s:cr
166+
exec "normal I" . " * 요약: " . l:todo . s:cr
167+
exec "normal I" . " * 설명: " . l:todo . s:cr
168+
exec "normal I" . " *" . s:cr
169+
exec "normal I" . " * 팀: " . l:team . s:cr
170+
exec "normal I" . " * 날짜: " . l:date . s:cr
170171
call s:EndComments()
171172
endfunction
172173

@@ -175,30 +176,26 @@ endfunction
175176
" Brief: 당일의 요약정보를 주석으로 남긴다.
176177
function IC_DailySummary()
177178
let l:filePath = s:GetProjectFilePath()
178-
let l:date = s:GetDate()
179-
let l:team = s:GetTeamInfo()
179+
let l:date = s:GetDate()
180+
let l:team = s:GetTeamInfo()
180181

181182
call s:StartComments()
182-
exec "normal I" . " * 제 00차 스터디" . s:cr
183-
exec "normal I" . " * 날짜: " . l:date . s:cr
184-
exec "normal I" . " * 장소: " . s:cr
185-
exec "normal I" . " *" . s:cr
186-
exec "normal I" . " * 팀: " . l:team . s:cr
187-
call s:PrintParticipantsInfo()
188-
call s:EndComments()
183+
call s:BarComments()
184+
exec "normal I" . " * 제 00차 스터디" . s:cr
185+
exec "normal I" . " * 날짜: " . l:date . s:cr
186+
exec "normal I" . " * 장소: " . s:cr
187+
exec "normal I" . " *" . s:cr
188+
exec "normal I" . " * 팀: " . l:team . s:cr
189+
call s:PrintParticipantsInfo()
190+
call s:EndComments()
189191
endfunction
190192

191193

192194
" Name: IC_AnalyzingCode
193195
" Brief: 분석한 코드의 주석을 상세히 남기기 위한 포맷
194196
function IC_AnalyzingCode()
195-
let l:date = s:GetDate()
196-
let l:team = s:GetTeamInfo()
197-
198-
call s:StartComments()
199-
exec "normal I" . " * 팀: " . l:team . s:cr
200-
exec "normal I" . " * 날짜: " . l:date . s:cr
197+
call s:StartComments()
201198
call s:BarComments()
202199
exec "normal I" . " * " . s:cr
203-
call s:EndComments()
200+
call s:EndComments()
204201
endfunction

0 commit comments

Comments
 (0)