Commits

Lars Yencken committed dc2bb39

Highlight clojure, ruby and R blocks.

Comments (0)

Files changed (2)

-au BufNewFile,BufRead workflow.d,Drakefile set filetype=drake syntax=drake
+au BufNewFile,BufRead workflow.d,Drakefile set filetype=drake syntax=drake noet
 unlet b:current_syntax
 syn include @Python syntax/python.vim
 
+let b:current_syntax = ''
+unlet b:current_syntax
+syn include @Ruby syntax/ruby.vim
+
+let b:current_syntax = ''
+unlet b:current_syntax
+syn include @Clojure syntax/clojure.vim
+
+let b:current_syntax = ''
+unlet b:current_syntax
+syn include @R syntax/r.vim
+
+
 " Comments
 syn match drakeComment ";.*$" contains=drakeTodo
 
 syn region drakeDefaultShBlock matchgroup=Snip start='^[ \t][ \t]*' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@Shell
 syn region drakeShBlock matchgroup=Snip start=' \[shell\]$' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@Shell
 syn region drakePyBlock matchgroup=Snip start=' \[python\]$' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@Python
+syn region drakePyBlock matchgroup=Snip start=' \[ruby\]$' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@Ruby
+syn region drakePyBlock matchgroup=Snip start=' \[clojure\]$' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@Clojure
+syn region drakePyBlock matchgroup=Snip start=' \[R\]$' end='^$' containedin=drakeBlock,drakeMethodBlock contains=@R
+
 
 " Embedded shell regions in strings
 syn region shellBrackets matchgroup=SnipBraces start='\$(' end=')' containedin=drakeString contains=@Shell