Add the files.

This commit is contained in:
bʰedoh₂ swé 2024-07-27 21:31:52 +05:00
parent d1fa08a5a0
commit 08726316eb
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,3 @@
# sust-vim-syntax
Vim syntax highlighting for Sust
Vim syntax highlighting for [Sust](https://github.com/MeexReay/sustlang)

13
ftdetect/sust.vim Normal file
View File

@ -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"