First version

This commit is contained in:
zelaven committed 2021-12-18 16:32:54 +01:00
1 parent c6aa5ebcf9
commit 95a173626f
1 file changed
+34
+34
View File
@@ -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"