mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
Update
This commit is contained in:
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
setlocal iskeyword+=-
|
||||
|
||||
syntax keyword mermaidDiagramType classDiagram classDiagram-v2 erDiagram gantt graph flowchart pie sequenceDiagram stateDiagram stateDiagram-v2
|
||||
syntax keyword mermaidDiagramType classDiagram classDiagram-v2 erDiagram gantt graph flowchart pie sequenceDiagram stateDiagram stateDiagram-v2 gitGraph
|
||||
syntax match mermaidOperator /\v(-|\<|\>|\+|\||\=)/
|
||||
syntax match mermaidComment /\v^(\s?)+\%\%.*$/
|
||||
syntax region mermaidString start=/"/ end=/"/ skip=/\\"/
|
||||
@@ -35,6 +35,9 @@ syntax match mermaidClassFunction /\v\w+\(((\w+|\s+|\~)?,?)+\)/ contains=ALLBUT,
|
||||
syntax match mermaidStateFinalKeyword /\[\*\]/
|
||||
syntax match mermaidStateKeyword /\v(\s+as[^a-z]|^\s+state)/
|
||||
|
||||
syntax match mermaidGitOption /\v^(options|end)/
|
||||
syntax match mermaidGitCommands /\v^(commit|branch|merge|reset|checkout)/
|
||||
|
||||
" TODO highlight gantt keywords
|
||||
|
||||
" TODO improve er operators
|
||||
@@ -63,3 +66,6 @@ highlight link mermaidStateFinalKeyword Keyword
|
||||
highlight link mermaidStateKeyword Keyword
|
||||
|
||||
highlight link mermaidErOperator Operator
|
||||
|
||||
highlight link mermaidGitOption Keyword
|
||||
highlight link mermaidGitCommands Keyword
|
||||
|
||||
Reference in New Issue
Block a user