diff --git a/.gitignore b/.gitignore index 71201896..6e357973 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ dst !*/**/dst /build +/Release +/Debug # Generated files *.gen.h diff --git a/contrib/vim/ftdetect/dst.vim b/contrib/vim/ftdetect/dst.vim deleted file mode 100644 index 038d2136..00000000 --- a/contrib/vim/ftdetect/dst.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufRead,BufNewFile *.dst,*.dsts setlocal filetype=dst diff --git a/contrib/vim/ftplugin/dst.vim b/contrib/vim/ftplugin/dst.vim deleted file mode 100644 index 7ecdbb90..00000000 --- a/contrib/vim/ftplugin/dst.vim +++ /dev/null @@ -1,25 +0,0 @@ -" Vim filetype plugin file -" Language: DST -" Maintainer: Calvin Rose - -if exists("b:did_ftplugin") - finish -endif -let b:did_ftplugin = 1 - -let s:cpo_save = &cpo -set cpo&vim - -setlocal iskeyword+=?,-,*,!,+,/,=,<,>,.,:,$ - -" There will be false positives, but this is better than missing the whole set -" of user-defined def* definitions. -setlocal define=\\v[(/]def(ault)@!\\S* - -" Remove 't' from 'formatoptions' to avoid auto-wrapping code. -setlocal formatoptions-=t - -setlocal comments=n:# -setlocal commentstring=#\ %s - -let &cpo = s:cpo_save diff --git a/contrib/vim/indent/dst.vim b/contrib/vim/indent/dst.vim deleted file mode 100644 index b424b02c..00000000 --- a/contrib/vim/indent/dst.vim +++ /dev/null @@ -1,17 +0,0 @@ -" Vim filetype plugin file -" Language: DST -" Maintainer: Calvin Rose - -if exists("b:did_indent") - finish -endif -let b:did_indent = 1 - -let s:cpo_save = &cpo -set cpo&vim - -setlocal noautoindent nosmartindent -setlocal softtabstop=2 shiftwidth=2 expandtab -setlocal indentkeys=!,o,O - -let &cpo = s:cpo_save diff --git a/contrib/vim/syntax/dst.vim b/contrib/vim/syntax/dst.vim deleted file mode 100644 index 8b5c13e1..00000000 --- a/contrib/vim/syntax/dst.vim +++ /dev/null @@ -1,69 +0,0 @@ -" Vim syntax file -" Language: DST -" Maintainer: Calvin Rose - -if exists("b:current_syntax") - finish -endif - -let s:cpo_sav = &cpo -set cpo&vim - -if has("folding") && exists("g:dst_fold") && g:dst_fold > 0 - setlocal foldmethod=syntax -endif - -syntax keyword DstCommentTodo contained FIXME XXX TODO FIXME: XXX: TODO: - -" DST comments -syn match DstComment "#.*$" contains=DstCommentTodo,@Spell - -syntax match DstStringEscape '\v\\%([\\btnfr"])' contained -syntax region DstString matchgroup=DstStringDelimiter start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=DstStringEscape,@Spell - -" Dst Symbols -syn match DstSymbol '\v<%([a-zA-Z!$&*_+=|<.>?-])+%([a-zA-Z0-9!#$%&*_+=|'<.>/?-])*>' - -" DST numbers -syn match DstReal '\v<[-+]?%(\d+|\d+\.\d*)%([eE][-+]?\d+)?>' -syn match DstInteger '\v<[-+]?%(\d+)>' - -syn match DstConstant 'nil' -syn match DstConstant 'true' -syn match DstConstant 'false' - -" Dst Keywords -syn match DstKeyword '\v<:[a-zA-Z0-9_\-]*>' - -syntax match DstQuote "'" - -" -*- TOP CLUSTER -*- -syntax cluster DstTop contains=@Spell,DstComment,DstConstant,DstQuote,DstKeyword,DstSymbol,DstInteger,DstReal,DstString,DstTuple,DstArray,DstTable,DstStruct - -syntax region DstTuple matchgroup=DstParen start="(" end=")" contains=@DstTop fold -syntax region DstArray matchgroup=DstParen start="\[" end="]" contains=@DstTop fold -syntax region DstTable matchgroup=DstParen start="{" end="}" contains=@DstTop fold -syntax region DstStruct matchgroup=DstParen start="@{" end="}" contains=@DstTop fold - -" Highlight superfluous closing parens, brackets and braces. -syntax match DstError "]\|}\|)" - -syntax sync fromstart - -" Highlighting -hi def link DstComment Comment -hi def link DstSymbol Identifier -hi def link DstInteger Number -hi def link DstReal Type -hi def link DstConstant Constant -hi def link DstKeyword Keyword -hi def link DstString String -hi def link DstStringDelimiter String - -hi def link DstQuote SpecialChar -hi def link DstParen Delimiter - -let b:current_syntax = "dst" - -let &cpo = s:cpo_sav -unlet! s:cpo_sav