mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
Remove openscad, fixes #249
This commit is contained in:
@@ -97,7 +97,6 @@ If you need full functionality of any plugin, please use it directly with your p
|
|||||||
- [ocaml](https://github.com/jrk/vim-ocaml) (syntax, indent, ftplugin)
|
- [ocaml](https://github.com/jrk/vim-ocaml) (syntax, indent, ftplugin)
|
||||||
- [octave](https://github.com/vim-scripts/octave.vim--) (syntax)
|
- [octave](https://github.com/vim-scripts/octave.vim--) (syntax)
|
||||||
- [opencl](https://github.com/petRUShka/vim-opencl) (syntax, indent, ftplugin)
|
- [opencl](https://github.com/petRUShka/vim-opencl) (syntax, indent, ftplugin)
|
||||||
- [openscad](https://github.com/sirtaj/vim-openscad) (syntax, ftplugin)
|
|
||||||
- [perl](https://github.com/vim-perl/vim-perl) (syntax, indent, ftplugin)
|
- [perl](https://github.com/vim-perl/vim-perl) (syntax, indent, ftplugin)
|
||||||
- [pgsql](https://github.com/exu/pgsql.vim) (syntax)
|
- [pgsql](https://github.com/exu/pgsql.vim) (syntax)
|
||||||
- [php](https://github.com/StanAngeloff/php.vim) (syntax)
|
- [php](https://github.com/StanAngeloff/php.vim) (syntax)
|
||||||
|
|||||||
1
build
1
build
@@ -136,7 +136,6 @@ PACKS="
|
|||||||
fsharp:fsharp/vim-fsharp:_BASIC
|
fsharp:fsharp/vim-fsharp:_BASIC
|
||||||
git:tpope/vim-git
|
git:tpope/vim-git
|
||||||
gmpl:maelvalais/gmpl.vim
|
gmpl:maelvalais/gmpl.vim
|
||||||
openscad:sirtaj/vim-openscad
|
|
||||||
glsl:tikhomirov/vim-glsl
|
glsl:tikhomirov/vim-glsl
|
||||||
gnuplot:vim-scripts/gnuplot-syntax-highlighting
|
gnuplot:vim-scripts/gnuplot-syntax-highlighting
|
||||||
go:fatih/vim-go:_BASIC
|
go:fatih/vim-go:_BASIC
|
||||||
|
|||||||
@@ -295,12 +295,6 @@ augroup filetypedetect
|
|||||||
au BufRead,BufNewFile *.mod set filetype=gmpl
|
au BufRead,BufNewFile *.mod set filetype=gmpl
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup filetypedetect
|
|
||||||
" openscad:sirtaj/vim-openscad
|
|
||||||
au BufRead,BufNewFile *.scad setfiletype openscad
|
|
||||||
an 50.80.265 &Syntax.NO.OpenSCAD :cal SetSyn("openscad")<CR>
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
augroup filetypedetect
|
augroup filetypedetect
|
||||||
" glsl:tikhomirov/vim-glsl
|
" glsl:tikhomirov/vim-glsl
|
||||||
" Language: OpenGL Shading Language
|
" Language: OpenGL Shading Language
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'openscad') == -1
|
|
||||||
|
|
||||||
" Blatantly stolen from vim74\ftplugin\c.vim
|
|
||||||
|
|
||||||
" Set 'formatoptions' to break comment lines but not other lines,
|
|
||||||
" and insert the comment leader when hitting <CR> or using "o".
|
|
||||||
setlocal fo-=t fo+=croql
|
|
||||||
|
|
||||||
" Set 'comments' to format dashed lists in comments.
|
|
||||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
||||||
|
|
||||||
" Win32 can filter files in the browse dialog
|
|
||||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
|
||||||
let b:browsefilter = "OpenSCAD Source Files (*.scad)\t*.scad\n" .
|
|
||||||
\ "All Files (*.*)\t*.*\n"
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'openscad') == -1
|
|
||||||
|
|
||||||
" Vim syntax file
|
|
||||||
" Language: OpenSCAD
|
|
||||||
" Maintainer: Sirtaj Singh Kang <sirtaj-vim@sirtaj.net>
|
|
||||||
" Last Changed: 2013 March 05
|
|
||||||
|
|
||||||
if version < 600
|
|
||||||
syntax clear
|
|
||||||
elseif exists("b:current_syntax")
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
"syn keyword openscadFunctionDef function
|
|
||||||
syn keyword openscadFunctionDef function nextgroup=openscadFunction skipwhite skipempty
|
|
||||||
syn match openscadFunction /\<\h\w*\>/ contained display
|
|
||||||
|
|
||||||
"syn keyword openscadModuleDef module
|
|
||||||
syn keyword openscadModuleDef module nextgroup=openscadModule skipwhite skipempty
|
|
||||||
syn match openscadModule /\<\h\w*\>/ contained display
|
|
||||||
|
|
||||||
syn keyword openscadStatement echo assign let
|
|
||||||
syn keyword openscadConditional if else
|
|
||||||
syn keyword openscadRepeat for intersection_for
|
|
||||||
syn keyword openscadInclude include use
|
|
||||||
syn keyword openscadCsgKeyword union difference intersection render intersection_for
|
|
||||||
syn keyword openscadTransform scale rotate translate mirror multmatrix color minkowski hull projection linear_extrude rotate_extrude offset
|
|
||||||
syn keyword openscadPrimitiveSolid cube sphere cylinder polyhedron surface
|
|
||||||
syn keyword openscadPrimitive2D square circle polygon import_dxf text
|
|
||||||
syn keyword openscadPrimitiveImport import child children
|
|
||||||
|
|
||||||
syn match openscadSpecialVariable "\$[a-zA-Z]\+\>" display
|
|
||||||
syn match openscadModifier "^\s*[\*\!\#\%]" display
|
|
||||||
|
|
||||||
syn match openscadNumbers "\<\d\|\.\d" contains=openscadNumber display transparent
|
|
||||||
syn match openscadNumber "\d\+" display contained
|
|
||||||
syn match openscadNumber "\.\d\+" display contained
|
|
||||||
|
|
||||||
syn region openscadString start=/"/ skip=/\\"/ end=/"/
|
|
||||||
|
|
||||||
syn keyword openscadBoolean true false
|
|
||||||
|
|
||||||
syn keyword openscadCommentTodo TODO FIXME XXX contained display
|
|
||||||
syn match openscadInlineComment ://.*$: contains=openscadCommentTodo
|
|
||||||
syn region openscadBlockComment start=:/\*: end=:\*/: fold contains=openscadCommentTodo
|
|
||||||
|
|
||||||
syn region openscadBlock start="{" end="}" transparent fold
|
|
||||||
syn region openscadVector start="\[" end="\]" transparent fold
|
|
||||||
|
|
||||||
syn keyword openscadBuiltin abs acos asin atan atan2 ceil cos exp floor ln log
|
|
||||||
syn keyword openscadBuiltin lookup max min pow rands round sign sin sqrt tan
|
|
||||||
syn keyword openscadBuiltin str len search version version_num concat chr
|
|
||||||
syn keyword openscadBuiltin dxf_cross dxf_dim
|
|
||||||
|
|
||||||
hi def link openscadFunctionDef Structure
|
|
||||||
hi def link openscadFunction Function
|
|
||||||
hi def link openscadModuleDef Structure
|
|
||||||
hi def link openscadModule Function
|
|
||||||
hi def link openscadBlockComment Comment
|
|
||||||
hi def link openscadBoolean Boolean
|
|
||||||
hi def link openscadBuiltin Function
|
|
||||||
hi def link openscadConditional Conditional
|
|
||||||
hi def link openscadCsgKeyword Structure
|
|
||||||
hi def link openscadInclude Include
|
|
||||||
hi def link openscadInlineComment Comment
|
|
||||||
hi def link openscadModifier Special
|
|
||||||
hi def link openscadStatement Statement
|
|
||||||
hi def link openscadNumbers Number
|
|
||||||
hi def link openscadNumber Number
|
|
||||||
hi def link openscadPrimitiveSolid Keyword
|
|
||||||
hi def link openscadPrimitive2D Keyword
|
|
||||||
hi def link openscadPrimitiveImport Keyword
|
|
||||||
hi def link openscadRepeat Repeat
|
|
||||||
hi def link openscadSpecialVariable Special
|
|
||||||
hi def link openscadString String
|
|
||||||
hi def link openscadTransform Statement
|
|
||||||
hi def link openscadCommentTodo Todo
|
|
||||||
|
|
||||||
" Blatantly stolen from vim74\syntax\c.vim
|
|
||||||
"when wanted, highlight trailing white space
|
|
||||||
if exists("openscad_space_errors")
|
|
||||||
if !exists("openscad_no_trail_space_error")
|
|
||||||
syn match openscadSpaceError display excludenl "\s\+$"
|
|
||||||
endif
|
|
||||||
if !exists("openscad_no_tab_space_error")
|
|
||||||
syn match openscadSpaceError display " \+\t"me=e-1
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
let b:current_syntax = "openscad"
|
|
||||||
|
|
||||||
endif
|
|
||||||
Reference in New Issue
Block a user