You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
" 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 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"
|
|
|