From 95a173626f0013ea27af565ab391547879575469 Mon Sep 17 00:00:00 2001 From: zelaven Date: Sat, 18 Dec 2021 16:32:54 +0100 Subject: [PATCH] First version --- acs.vim | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 acs.vim diff --git a/acs.vim b/acs.vim new file mode 100644 index 0000000..2218db8 --- /dev/null +++ b/acs.vim @@ -0,0 +1,34 @@ +" Vim syntax file +" Language: ACS (Doom actionscript) +" Maintainer: Patrick Jakobsen +" Latest Revision: 2021-12-18 + +if exists("b:current_syntax") + finish +endif + +syn keyword language_keywords script function if while return while for switch case break default +hi def link language_keywords Keyword +syn keyword script_types OPEN ENTER RETURN RESPAWN DEATH LIGHTNING UNLOADING DISCONNECT KILL REOPEN net +hi def link script_types Keyword + +syn keyword types int str bool +hi def link types Type + +syn keyword TODO TODO FIXME XXX +hi def link TODO Todo + +" @Spell means spell checking if I understand correctly. +syn region line_comment start="//" end="$" contains=TODO,@Spell +hi def link line_comment Comment +syn region block_comment start="/\*" end="\*/" contains=TODO,@Spell +hi def link block_comment Comment + +syn region string start=+"+ end=+"+ +hi def link string String +syn keyword boolean_constant true false +hi def link boolean_constant Boolean +syn match number_constant "\<[0-9]*\>" +hi def link number_constant Number + +let b:current_syntax = "acs"