Skip to content

Commit

Permalink
修整了一下语法高亮
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Dec 18, 2023
1 parent 6da0e4f commit e4d3173
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syntax/vim/mdtlbl.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: mindustry_logic_bang_lang (mdtlbl)
" Maintainer: A4-Tacks <[email protected]>
" Last Change: 2023-8-24
" Last Change: 2023-12-18
" URL: https://github.com/A4-Tacks/mindustry_logic_bang_lang

" 已加载高亮时就退出
Expand Down Expand Up @@ -43,7 +43,7 @@ syn match mdtlblCmpTreeOper /&&\|||\|!/
hi link mdtlblCmpTreeOper Operator

" 注释 {{{1
syn region mdtlblComment start=/#/ end=/$/
syn region mdtlblComment start=/#/ end=/$/ oneline
syn region mdtlblLongComment start=/#\*/ end=/\*#/ fold
hi link mdtlblComment Comment
hi link mdtlblLongComment Comment
Expand All @@ -55,10 +55,10 @@ setlocal formatoptions+=rq

" 值(Var) {{{1
syn match mdtlblSpecialChar /\\n/ contained
hi link mdtlblString String
hi link mdtlblSpecialChar SpecialChar

syn region mdtlblString start=/"/ end=/"/ contains=mdtlblSpecialChar
hi link mdtlblSpecialChar SpecialChar
hi link mdtlblString String

syn match mdtlblOIdent /@\I\i*\(-\i*\)*/
hi link mdtlblOIdent Identifier
Expand All @@ -80,7 +80,7 @@ hi link mdtlblResultHandle Identifier


" Label {{{1
syn match mdtlblDefineResultHandle /\I\i*:/
syn match mdtlblDefineResultHandle /\((\(\s\|\n\)*\)\@<=\I\i*:/
hi link mdtlblDefineResultHandle Identifier

syn match mdtlblIdentLabel /:\I\i*/
Expand Down

0 comments on commit e4d3173

Please sign in to comment.