Skip to content

Commit ef4fdcf

Browse files
Add support for docker
1 parent c9d30e9 commit ef4fdcf

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ C# | :x: | :x:
5858
C++ | :heavy_check_mark: | :heavy_check_mark:
5959
CMake | :heavy_check_mark: | :heavy_check_mark:
6060
D | :x: | :x:
61+
Dockerfile | :heavy_check_mark: | :heavy_check_mark:
6162
Fish-Shell | :heavy_check_mark: | :heavy_check_mark:
6263
Fortran | :heavy_check_mark: | :heavy_check_mark:
6364
Go | :x: | :x:

ftplugin/Dockerfile.vim

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
let g:path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
2+
3+
function! s:DebugStringFun(desc, ...)
4+
execute 'source ' . g:path . '/common/sh_like.vim'
5+
let b:res = ""
6+
if len(a:000) ==# 0
7+
let b:res = DebugStringFunShellBase(a:desc)
8+
else
9+
let b:res = DebugStringFunShellBase(a:desc, a:1)
10+
endif
11+
return "RUN " . b:res
12+
endfunc
13+
14+
command! -buffer -nargs=0 AddDebugString
15+
\ put=s:DebugStringFun(g:DebugstringPrefixStr() . g:debugStringCounter)
16+
command! -buffer -nargs=1 AddDebugStringExpr
17+
\ put=s:DebugStringFun(<args> . ': ', <args>)
18+

test/basic.vader

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ Execute (Arduino):
6666
:set filetype=arduino
6767
Execute (Makefile):
6868
:set filetype=make
69+
Execute (Dockerfile):
70+
:set filetype=Dockerfile
6971

7072
================================================================================

test/ft/a.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RUN echo "[[Vader-workbench]:$1$] DEBUGGING STRING ==> $2$"
2+
RUN echo "a**2 + b**2: ${a**2 + b**2}"
3+

0 commit comments

Comments
 (0)