mirror of
https://github.com/janet-lang/janet
synced 2025-01-10 15:40:30 +00:00
Remove vim scripts to new repo. Ignore Release and Debug
This commit is contained in:
parent
278769f2bb
commit
905ed9f871
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@
|
||||
dst
|
||||
!*/**/dst
|
||||
/build
|
||||
/Release
|
||||
/Debug
|
||||
|
||||
# Generated files
|
||||
*.gen.h
|
||||
|
@ -1 +0,0 @@
|
||||
autocmd BufRead,BufNewFile *.dst,*.dsts setlocal filetype=dst
|
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user