2 Commits

Author SHA1 Message Date
Devillez Louis
a462bbda1e Add openscad comments (#545)
Some checks are pending
Vint / vint (push) Waiting to run
2025-11-19 11:24:44 +03:00
Ankur Sinha
02a3b6455f feat: Add taskjuggler (#542)
Some checks failed
Vint / vint (push) Has been cancelled
Co-authored-by: Caleb Maclennan <caleb@alerque.com>
2025-04-30 14:42:03 +03:00
2 changed files with 7 additions and 6 deletions

View File

@@ -277,6 +277,7 @@ let s:delimiterMap = {
\ 'omnimark': { 'left': ';' },
\ 'ooc': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'openroad': { 'left': '//' },
\ 'openscad': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'opl': { 'left': 'REM' },
\ 'ora': { 'left': '#' },
\ 'ox': { 'left': '//' },
@@ -406,6 +407,7 @@ let s:delimiterMap = {
\ 'texmf': { 'left': '%' },
\ 'tf': { 'left': '#' },
\ 'tidy': { 'left': '#' },
\ 'tjp': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },
\ 'tla': { 'left': '\\*', 'leftAlt': '(*', 'rightAlt': '*)' },
\ 'tli': { 'left': '#' },
\ 'tmux': { 'left': '#' },
@@ -1023,8 +1025,7 @@ function! s:CommentLinesToggle(forceNested, firstLine, lastLine) abort
let currentLine = a:firstLine
let align = g:NERDDefaultAlign
let lookBehind = align ==# 'previous' && currentLine != 1 && s:IsCommentedFromStartOfLine(s:Left(), getline(currentLine - 1))
let leftAlignIndx = align ==# 'start' ? 0 : s:LeftMostIndx(a:forceNested, 0, a:firstLine - lookBehind, a:lastLine)
let leftAlignIndx = align ==# 'start' ? 0 : s:LeftMostIndx(a:forceNested, 0, a:firstLine, a:lastLine)
let rightAlignIndx = s:RightMostIndx(a:forceNested, 0, a:firstLine, a:lastLine)
let rightAlignIndx = rightAlignIndx + strlen(s:Left({'space': 1}))
@@ -1042,7 +1043,7 @@ function! s:CommentLinesToggle(forceNested, firstLine, lastLine) abort
let theLine = s:SwapOuterMultiPartDelimsForPlaceHolders(theLine)
endif
if align ==# 'left' || align ==# 'start' || align ==# 'both' || align ==# 'previous'
if align ==# 'left' || align ==# 'start' || align ==# 'both'
let theLine = s:AddLeftDelimAligned(s:Left({'space': 1}), theLine, leftAlignIndx)
else
let theLine = s:AddLeftDelim(s:Left({'space': 1}), theLine)

View File

@@ -503,8 +503,8 @@ change the filetype back: >
style sexy comments.
|'NERDDefaultAlign'| Specifies the default alignment to use,
one of 'none', 'left', 'start', 'both'
or 'previous'.
one of 'none', 'left', 'start', or
'both'.
|'NERDToggleCheckAllLines'| Enable NERDCommenterToggle to check
all selected lines is commented or not.
@@ -784,7 +784,7 @@ deleted when uncommenting a line.
------------------------------------------------------------------------------
*'NERDDefaultAlign'*
Values: 'none', 'left', 'start', 'both', 'previous'.
Values: 'none', 'left', 'start', 'both'
Default 'none'.
Specifies the default alignment to use when inserting comments.