Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
match shortest brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
ompugao committed Jan 8, 2023
1 parent b2973a9 commit 8e58944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/markshift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ syn cluster markshiftSBracketContent contains=markshiftBig,markshiftItalic,marks
syn cluster markshiftSBracketLink contains=markshiftSLink1,markshiftSLink2,markshiftSLink3
"syn region markshiftSLink keepend start=/\[/ms=s+1 end=/\]/me=e-1 contains=@markshiftSBracketLink oneline transparent contained
syn region markshiftSBracket keepend start=/\[/ms=s+1 end=/\]/me=e-1 contains=@markshiftSBracketLink oneline
syn match markshiftSBracketNoURL /\[\(.\+:\/\/\\*\)\@!.*\]/ms=s+1,me=e-1 keepend contains=@markshiftSBracketContent,markshiftPageLink
syn match markshiftSBracketNoURL /\[\(.\+:\/\/\\*\)\@!.\{-}\]/ms=s+1,me=e-1 keepend contains=@markshiftSBracketContent,markshiftPageLink

" [markshift]
" do not match url!
Expand Down

0 comments on commit 8e58944

Please sign in to comment.