Skip to content

Commit 6382df8

Browse files
committed
Add lua to tests, README table
1 parent cd9f20a commit 6382df8

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tags
22
b.*
3-
vader.vim
4-
vim-repeat
3+
/vader.vim
4+
/vim-repeat

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Haskell | :heavy_check_mark: | :heavy_check_mark:
6868
Java | :heavy_check_mark: | :heavy_check_mark:
6969
Javascript | :heavy_check_mark: | :heavy_check_mark:
7070
Julia | :x: | :x:
71-
Lua | :x: | :x:
71+
Lua | :heavy_check_mark: | :heavy_check_mark:
7272
Makefile | :heavy_check_mark: | :heavy_check_mark:
7373
Matlab | :x: | :x:
7474
PHP | :heavy_check_mark: | :heavy_check_mark:

test/basic.vader

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ Execute (Makefile):
6868
:set filetype=make
6969
Execute (Dockerfile):
7070
:set filetype=Dockerfile
71+
Execute (Lua):
72+
:set filetype=lua
7173

7274
================================================================================

test/ft/a.lua

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

test/run-tests.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
set -e
55

6-
# Do not "cd" to any existing "test" dir from CDPATH!
7-
unset CDPATH
86

9-
cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
7+
oldpwd=$PWD
8+
cd $(dirname $(readlink -f $0))/..
9+
test -d vader.vim || git clone https://github.com/junegunn/vader.vim.git
10+
test -d vim-repeat || git clone https://github.com/tpope/vim-repeat.git
1011
command vim -Nu test/vimrc -c 'Vader! test/*'
11-
cd -
12+
cd $oldpwd

0 commit comments

Comments
 (0)