Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions syntax/xit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ syn match xitCheckboxOpenPriority "\v( *\.*!* ){,1}" nextgroup=xitCheckboxOpenDe
" This matches a multiline open checkbox description. It starts right away with any char and ends
" at the beginning of the next checkbox or next group title. /me=e-1 means match to the end offset
" by one so that it doesn't include the first char of a title or the "[".
syn region xitCheckboxOpenDesc start="." end=/\v(\[|^[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate
syn region xitCheckboxOpenDesc start="." end=/\v(^[\[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate

" Matches a checkbox like "[x]"
syn match xitCheckboxChecked "\v^\[x\]" nextgroup=xitCheckboxCheckedSpace
Expand All @@ -47,7 +47,7 @@ syn match xitCheckboxCheckedPriority "\v( *\.*!* ){,1}" nextgroup=xitCheckboxChe
" This matches a multiline checked checkbox description. It starts right away with any char and ends
" at the beginning of the next checkbox or next group title. /me=e-1 means match to the end offset
" by one so that it doesn't include the first char of a title or the "[".
syn region xitCheckboxCheckedDesc start="." end=/\v(\[|^[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate
syn region xitCheckboxCheckedDesc start="." end=/\v(^[\[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate

" Matches a checkbox like "[@]"
syn match xitCheckboxOngoing "\v^\[\@\]" nextgroup=xitCheckboxOngoingSpace
Expand All @@ -58,7 +58,7 @@ syn match xitCheckboxOngoingPriority "\v( *\.*!* ){,1}" nextgroup=xitCheckboxOng
" This matches a multiline ongoing checkbox description. It starts right away with any char and ends
" at the beginning of the next checkbox or next group title. /me=e-1 means match to the end offset
" by one so that it doesn't include the first char of a title or the "[".
syn region xitCheckboxOngoingDesc start="." end=/\v(\[|^[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate
syn region xitCheckboxOngoingDesc start="." end=/\v(^[\[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate

" This matches a checkbox like "[~]"
syn match xitCheckboxObsolete "\v^\[\~\]" nextgroup=xitCheckboxObsoleteSpace
Expand All @@ -69,7 +69,7 @@ syn match xitCheckboxObsoletePriority "\v( *\.*!* ){,1}" nextgroup=xitCheckboxOb
" This matches a multiline obsolete checkbox description. It starts right away with any char and ends
" at the beginning of the next checkbox or next group title. /me=e-1 means match to the end offset
" by one so that it doesn't include the first char of a title or the "[".
syn region xitCheckboxObsoleteDesc start="." end=/\v(\[|^[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate
syn region xitCheckboxObsoleteDesc start="." end=/\v(^[\[a-zA-Z0-9])/me=e-1 contained contains=xitTag,xitDueDate

" Matches a tag with letters, numbers, _, or -
syn match xitTag "\v#[a-zA-Z0-9_-]+" contained
Expand Down