Skip to content

Commit

Permalink
Closes #75.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarmu committed Dec 11, 2023
1 parent ac9b893 commit 0de0dc7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions syntax/typst.vim
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ syntax region typstCodeStatement
\ matchgroup=Noise end=/\v%(;|$)/
\ contains=@typstCode
syntax region typstCodeStatement
\ matchgroup=typstCodeStatementWord start=/show/
\ contained
\ matchgroup=typstCodeStatementWord start=/show/
\ matchgroup=Noise end=/\v%(:|$)/ keepend
\ contains=@typstCode
\ contains=@typstCode
\ skipwhite nextgroup=@typstCode,typstCodeShowRocket
syntax match typstCodeShowRocket
\ contained
\ /.*=>/
\ contains=@typstCode
\ skipwhite nextgroup=@typstCode

" Code > Identifiers {{{2
Expand Down Expand Up @@ -190,7 +196,7 @@ syntax region typstHashtagStatement
\ matchgroup=typstHashtagStatementWord start=/#show/
\ matchgroup=Noise end=/\v%(:|$)/ keepend
\ contains=@typstCode
\ skipwhite nextgroup=@typstCode
\ skipwhite nextgroup=@typstCode,typstCodeShowRocket

" Hashtag > Constants {{{2
syntax cluster typstHashtagConstants
Expand Down

0 comments on commit 0de0dc7

Please sign in to comment.