Added 'Interface' section to the documention

This commit is contained in:
li-zhaoyang
2020-01-21 14:42:18 +08:00
parent eb6243c0c8
commit 53f5710627
3 changed files with 57 additions and 14 deletions

View File

@@ -1209,6 +1209,12 @@ function s:InvertComment(firstLine, lastLine)
endwhile
endfunction
" Function: NERDCommentIsLineCommented(lineNo)
" Check if the line is a comment
" Note this function checks if the line is **completely** a comment
" Args:
" -lineNo: the line number of the line to check
" Return: Number, 1 if the line is a comment, 0 else
function! NERDCommentIsLineCommented(lineNo)
let theLine = getline(a:lineNo)
return s:IsInSexyComment(a:lineNo) || s:IsCommentedFromStartOfLine(s:Left(), theLine) || s:IsCommentedFromStartOfLine(s:Left({'alt': 1}), theLine)