aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rw-r--r--examples/mandelbrot.sloth2
-rw-r--r--vim/ftdetect.vim1
-rw-r--r--vim/syntax.vim8
4 files changed, 2 insertions, 11 deletions
diff --git a/build.sh b/build.sh
index 653604d..cbcd805 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@ FILENAME="$1"
./target/debug/sloth std/extern.sloth std/stdmath.sloth std/stdio.sloth $FILENAME
# Generate binary
-clang -lm output.o std/stdio.c std/stdlib.c std/stdmath.c -o "${FILENAME%.sloth}"
+clang --verbose -lm output.o std/stdio.c std/stdlib.c std/stdmath.c -o "${FILENAME%.sloth}"
# Move file
mv "${FILENAME%.sloth}" .
diff --git a/examples/mandelbrot.sloth b/examples/mandelbrot.sloth
index 525f5eb..c7c559a 100644
--- a/examples/mandelbrot.sloth
+++ b/examples/mandelbrot.sloth
@@ -1,4 +1,4 @@
-fn main() Int{
+fn main() Int {
# Configure
var size: Float = 1000.0;
var maxVal: Float = 4.0;
diff --git a/vim/ftdetect.vim b/vim/ftdetect.vim
deleted file mode 100644
index c19a7ca..0000000
--- a/vim/ftdetect.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufRead,BufNewFile *.sloth set filetype=sloth
diff --git a/vim/syntax.vim b/vim/syntax.vim
deleted file mode 100644
index af0f062..0000000
--- a/vim/syntax.vim
+++ /dev/null
@@ -1,8 +0,0 @@
-:syntax keyword Statement while fn foreign fn var if else return as in
-:syntax keyword Type Int String Float Void Bool
-:syntax match Number '[1234567890]'
-:syntax match Operator '[+ \- \* \/ <= == >= &&]'
-:syntax region String start=+"+ skip=+\\+ end=+"+
-:syntax match paren "("
-:syntax match Function "\w\+\s*(" contains=paren
-:syntax match Comment "#.*"