From 1a8afd97df347ffa35a8aa857092f6729d54ea6f Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 11 Jul 2024 15:12:23 +0200 Subject: [PATCH] init --- .vim/ftdetect/epp.vim | 1 + .vim/syntax/epp.vim | 27 +++++++++++++++++++++++++++ README.md | 1 + 3 files changed, 29 insertions(+) create mode 100644 .vim/ftdetect/epp.vim create mode 100644 .vim/syntax/epp.vim create mode 100644 README.md diff --git a/.vim/ftdetect/epp.vim b/.vim/ftdetect/epp.vim new file mode 100644 index 0000000..9697046 --- /dev/null +++ b/.vim/ftdetect/epp.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.epp set filetype=epp diff --git a/.vim/syntax/epp.vim b/.vim/syntax/epp.vim new file mode 100644 index 0000000..eddf70a --- /dev/null +++ b/.vim/syntax/epp.vim @@ -0,0 +1,27 @@ +syn match EppComment "@.*" +syn match EppString +".\{-}[^\\]"+ +syn match EppInt "\<\d\+\>" +syn keyword EppStdFunction checkpoint convert append return system import global select print range input index write array sleep join proc prec list goto jump type read rand help exec pair keys out str len get pop sub has run cti itc env +syn keyword EppRepeat for while switch if else +syn keyword EppLabel case +syn keyword EppJump goto return break +syn keyword EppFunc func +syn keyword EppSet set +syn keyword EppBoolLiteral false true +syn keyword EppException except +syn match EppArrowOperator "->" +syn match EppAccessOperator "'" + +hi link EppComment Comment +hi link EppStdFunction Function +hi link EppString String +hi link EppInt Number +hi link EppBoolLiteral Boolean +hi link EppRepeat Repeat +hi link EppLabel Label +hi link EppJump Statement +hi link EppSet Statement +hi link EppFunc Statement +hi link EppArrowOperator Operator +hi link EppAccessOperator Operator +hi link EppException Exception diff --git a/README.md b/README.md new file mode 100644 index 0000000..86808c4 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Syntax files for Epp (esolang of a fren).