File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ C# | :x: | :x:
5858C++ | :heavy_check_mark : | :heavy_check_mark :
5959CMake | :heavy_check_mark : | :heavy_check_mark :
6060D | :x : | :x :
61+ Dockerfile | :heavy_check_mark : | :heavy_check_mark :
6162Fish-Shell | :heavy_check_mark : | :heavy_check_mark :
6263Fortran | :heavy_check_mark : | :heavy_check_mark :
6364Go | :x : | :x :
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -66,5 +66,7 @@ Execute (Arduino):
6666 :set filetype=arduino
6767Execute (Makefile):
6868 :set filetype=make
69+ Execute (Dockerfile):
70+ :set filetype=Dockerfile
6971
7072================================================================================
Original file line number Diff line number Diff line change 1+ RUN echo "[[Vader-workbench]:$1$] DEBUGGING STRING ==> $2$"
2+ RUN echo "a**2 + b**2: ${a**2 + b**2}"
3+
You can’t perform that action at this time.
0 commit comments