diff --git a/init.lua b/init.lua index 0f12221..74f67df 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ -- load configurations files from lua/* +require('filetype') require('options') require('functions') require('plugins') diff --git a/lua/filetype.lua b/lua/filetype.lua new file mode 100644 index 0000000..f3c5503 --- /dev/null +++ b/lua/filetype.lua @@ -0,0 +1,5 @@ +vim.filetype.add({ + extension = { + CON = 'confile', + }, +}) diff --git a/syntax/confile.vim b/syntax/confile.vim new file mode 100644 index 0000000..e5790a5 --- /dev/null +++ b/syntax/confile.vim @@ -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