From b7951c8f193a03a1ea5e263530a4c390db76ceba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 28 Jul 2024 21:58:40 +0500 Subject: [PATCH] Bruh --- ftdetect/sust.vim | 14 +------------- syntax/sust.vim | 13 +++++++++++++ 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 syntax/sust.vim diff --git a/ftdetect/sust.vim b/ftdetect/sust.vim index 5b1aa63..57a7879 100644 --- a/ftdetect/sust.vim +++ b/ftdetect/sust.vim @@ -1,13 +1 @@ -if exists("b:current_syntax") - finish -endif - -" syntax keyword Label args -syn match Number /[ \r\n\t\f\v\-]*\d*[ \r\n\t\f\v$]*/ -syn keyword Special FUNC RETURN FUNC_END -syn keyword Statement INIT_VAR SET_VAR TEMP_VAR MOVE_VAR COPY_VAR DROP_VAR HAS_VAR LIST_SIZE TO_STRING ADD_INT ADD_FLOAT ADD_STR SUB_STR SUB_LIST FOR FOR_MAP FOR_LIST WHILE WRITE READ READ_ALL READ_STR READ_STR_ALL OPEN_FILE_IN OPEN_FILE_OUT OPEN_TCP_CONNECTION OPEN_TCP_LISTENER EQUALS MORE LESS AND OR IF HAS_STR HAS_ITEM HAS_ENTRY HAS_KEY HAS_VALUE HAS_OPTIONAL USE_FUNC SLEEP NEW_THREAD -syn keyword Type bool string integer float char list map optinal in_stream out_stream - -syntax match Comment /#.*$/ - -let b:current_syntax = "labashki" +autocmd BufRead,BufNewFile *.sus set filetype=sust diff --git a/syntax/sust.vim b/syntax/sust.vim new file mode 100644 index 0000000..c6a1d31 --- /dev/null +++ b/syntax/sust.vim @@ -0,0 +1,13 @@ +if exists("b:current_syntax") + finish +endif + +" syntax keyword Label args +syn match Number /[ \r\n\t\f\v\-]*\d*[ \r\n\t\f\v$]*/ +syn keyword Special FUNC RETURN FUNC_END +syn keyword Statement INIT_VAR SET_VAR TEMP_VAR MOVE_VAR COPY_VAR DROP_VAR HAS_VAR LIST_SIZE TO_STRING ADD_INT ADD_FLOAT ADD_STR SUB_STR SUB_LIST FOR FOR_MAP FOR_LIST WHILE WRITE READ READ_ALL READ_STR READ_STR_ALL OPEN_FILE_IN OPEN_FILE_OUT OPEN_TCP_CONNECTION OPEN_TCP_LISTENER EQUALS MORE LESS AND OR IF HAS_STR HAS_ITEM HAS_ENTRY HAS_KEY HAS_VALUE HAS_OPTIONAL USE_FUNC SLEEP NEW_THREAD +syn keyword Type bool string integer float char list map optinal in_stream out_stream + +syntax match Comment /#.*$/ + +let b:current_syntax = "sust"