Skip to content

Commit c9d30e9

Browse files
Add support for Makefiles
1 parent b648ef4 commit c9d30e9

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ C# | :x: | :x:
5858
C++ | :heavy_check_mark: | :heavy_check_mark:
5959
CMake | :heavy_check_mark: | :heavy_check_mark:
6060
D | :x: | :x:
61-
Fortran | :heavy_check_mark: | :heavy_check_mark:
6261
Fish-Shell | :heavy_check_mark: | :heavy_check_mark:
62+
Fortran | :heavy_check_mark: | :heavy_check_mark:
6363
Go | :x: | :x:
6464
Haskell | :heavy_check_mark: | :heavy_check_mark:
6565
Java | :heavy_check_mark: | :heavy_check_mark:
6666
Javascript | :heavy_check_mark: | :heavy_check_mark:
6767
Julia | :x: | :x:
6868
Lua | :x: | :x:
69+
Makefile | :heavy_check_mark: | :heavy_check_mark:
6970
Matlab | :x: | :x:
7071
PHP | :heavy_check_mark: | :heavy_check_mark:
7172
Perl | :x: | :x:

ftplugin/make.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function! s:DebugStringFun()
2+
let l:debug_str = '@echo "' . g:DebugstringPrefixStr() . g:debugStringCounter . '"'
3+
return l:debug_str
4+
endfunc
5+
6+
function! s:DebugStringFunExpr(expr)
7+
let l:debug_str = '@echo ' . '"'
8+
\ . a:expr . ': '
9+
\ . '$(' . a:expr . ')'
10+
\ . '"'
11+
return l:debug_str
12+
endfunc
13+
14+
command! -buffer -nargs=0 AddDebugString put=s:DebugStringFun()
15+
command! -buffer -nargs=1 AddDebugStringExpr put=s:DebugStringFunExpr(<args>)
16+
17+

test/basic.vader

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ Execute (Fortran):
6464
:set filetype=fortran
6565
Execute (Arduino):
6666
:set filetype=arduino
67+
Execute (Makefile):
68+
:set filetype=make
6769

6870
================================================================================

test/ft/a.make

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

0 commit comments

Comments
 (0)