Skip to content

Commit 46cab03

Browse files
author
Yogansh Sharma
committed
Adding lua support
1 parent 840739d commit 46cab03

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

run

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ run() {
207207
elif [[ ${FILE#*.} == pl ]]; then
208208
perl "$FILE"
209209

210+
elif [[ ${FILE#*.} == lua ]]; then
211+
lua "$FILE"
212+
210213
else
211214
_ERROR_UFTC_
212215
_EXIT_
@@ -235,10 +238,12 @@ for arg in "$@"; do
235238
echo " ${yellow}>>${white} Bash-Script"
236239
echo " ${yellow}>>${white} Javascript ${cyan}[${white}with ${green}debug${white} support${cyan}]"
237240
echo " ${yellow}>>${white} Golang"
241+
echo " ${yellow}>>${white} Perl"
242+
echo " ${yellow}>>${white} Lua"
238243
echo
239244
;;
240245

241-
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go"| *".pl")
246+
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go" | *".pl" | *".lua")
242247
FILE_LOCATION=$arg
243248
if [[ ! -f $FILE_LOCATION ]]; then
244249
_ERROR_UFTC_

0 commit comments

Comments
 (0)