Added syntax highlighting for .CON files

This commit is contained in:
2025-05-04 23:31:37 +02:00
parent 8f4cfc7926
commit f3157898b6
3 changed files with 24 additions and 0 deletions

18
syntax/confile.vim Normal file
View File

@@ -0,0 +1,18 @@
" Vim Syntax file for CON files
syn match SetLength /^\d\{3\}/ nextgroup=SetKeyword,SetKeywordMarked
syn match SetKeyword /\d\{4\}/ contained
syn match SetKeywordMarked /310[123]\|5000/ contained nextgroup=SetKeywordMarkedInfo
syn match SetKeywordMarkedInfo /..*/ contained
hi SetLength guifg=grey
hi SetKeyword guifg=lightgreen
hi SetKeywordMarked gui=inverse guifg=lightgreen
hi SetKeywordMarkedInfo gui=inverse
syn match SetStart /^0138000/ nextgroup=SetType
syn match SetType /con0\|con9\|besa\|adt0\|adt9\|010[1-4]\|rvsa/ contained " 0101
hi SetStart guifg=white guibg=green
hi SetType guifg=white guibg=red