|
|
- " Vim syntax file
- " Language: ACS (Doom actionscript)
- " Maintainer: Zelaven
- " Latest Revision: 2022-04-14
-
- if exists("b:current_syntax")
- finish
- endif
-
- syn keyword language_keywords script function if else while return while for switch case break default terminate
- hi def link language_keywords Keyword
- syn keyword script_types OPEN ENTER RETURN RESPAWN DEATH LIGHTNING UNLOADING DISCONNECT KILL REOPEN NET CLIENTSIDE
- hi def link script_types Keyword
-
- syn keyword types int str bool void
- 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,line_comment,block_comment
- 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"
|