From 9b2fe27e03ae1962305f9032823e9984b2cf503c Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Mon, 31 Jul 2023 00:07:46 -0500 Subject: got rid of vim --- build.sh | 2 +- examples/mandelbrot.sloth | 2 +- vim/ftdetect.vim | 1 - vim/syntax.vim | 8 -------- 4 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 vim/ftdetect.vim delete mode 100644 vim/syntax.vim 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 "#.*" -- cgit v1.2.3