From 08726316ebd57b92410bdc39b735619e68abec3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sat, 27 Jul 2024 21:31:52 +0500 Subject: [PATCH] Add the files. --- README.md | 2 +- ftdetect/sust.vim | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 ftdetect/sust.vim diff --git a/README.md b/README.md index d7c43f4..1983218 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # sust-vim-syntax -Vim syntax highlighting for Sust \ No newline at end of file +Vim syntax highlighting for [Sust](https://github.com/MeexReay/sustlang) diff --git a/ftdetect/sust.vim b/ftdetect/sust.vim new file mode 100644 index 0000000..5b1aa63 --- /dev/null +++ b/ftdetect/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 = "labashki"