From a9292a98cc6c65e2a4ad6da20937ef7568a4143d Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Mon, 11 Mar 2024 16:33:24 -0700 Subject: earlpy --- extras/ftdetect/earlpy.vim | 1 + extras/syntax/earlpy.vim | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 extras/ftdetect/earlpy.vim create mode 100644 extras/syntax/earlpy.vim (limited to 'extras') diff --git a/extras/ftdetect/earlpy.vim b/extras/ftdetect/earlpy.vim new file mode 100755 index 0000000..f63a7b4 --- /dev/null +++ b/extras/ftdetect/earlpy.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.earlpy set filetype=earlpy diff --git a/extras/syntax/earlpy.vim b/extras/syntax/earlpy.vim new file mode 100644 index 0000000..429db40 --- /dev/null +++ b/extras/syntax/earlpy.vim @@ -0,0 +1,20 @@ +" https://vim.fandom.com/wiki/Creating_your_own_syntax_files +" Vim syntax file +" Language: Celestia Star Catalogs +" Maintainer: Kevin Lauder +" Latest Revision: 26 April 2008 + +if exists("b:current_syntax") + finish +endif + +let b:current_syntax = "earlpy" + +" Matches +syn match basicKeywords "\zs.*\ze$" +syn match literalTag "\zs .*\ze$" +syn match comment "\zs#.*\ze$" + +hi def link literalTag Type +hi def link basicKeywords Keyword +hi def link comment Comment -- cgit v1.2.3