ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/deliantra/util/maps/cfmap.vim
Revision: 1.1
Committed: Fri Jan 5 23:54:49 2007 UTC (19 years, 9 months ago) by pippijn
Branch: MAIN
Log Message:
added crossfire maps syntax file

File Contents

# User Rev Content
1 pippijn 1.1 " Vim syntax file
2     " Language: Crossfire Maps
3     " Maintainer: Pippijn van Steenhoven <pip88nl@gmail.com>
4     " Last Change: 2007 Jan 05
5    
6     if exists("b:current_syntax")
7     finish
8     endif
9    
10     " Comments: {{{1
11     "==========
12     syn cluster cfCommentGroup contains=cfTodo,@Spell
13     syn keyword cfTodo contained COMBAK FIXME TODO XXX
14     syn match cfComment "#.*$" contains=@cfCommentGroup
15    
16     " Keywords: {{{1
17     "==========
18     syn keyword cfBlock1 arch end
19    
20     syn keyword cfMap darkness width height enter_x enter_y per_player region difficulty
21     syn keyword cfMap reset_timeout reset_time swap_time maplore endmaplore
22     syn keyword cfMap fixed_resettime per_player per_party shopitems shopgreed shopmin
23     syn keyword cfMap shopmax shoprace outdoor tile_path_1 tile_path_2 tile_path_3 tile_path_4
24     syn keyword cfMap file_format_version temp pressure humid windspeed winddir sky map
25    
26     syn keyword cfArch no_pass walk_on walk_off fly_on fly_off
27     syn keyword cfArch flying ac activate_on_push activate_on_release alive anim_speed animation
28     syn keyword cfArch applied armour attach attack_movement attacktype auto_apply
29     syn keyword cfArch been_applied berserk blocksview body_range body_arm body_torso body_head
30     syn keyword cfArch body_neck body_skill body_finger body_shoulder body_foot body_hand
31     syn keyword cfArch body_wrist body_waist can_apply can_cast_spell can_roll can_see_in_dark
32     syn keyword cfArch can_use_armour can_use_bow can_use_horn can_use_range can_use_ring
33     syn keyword cfArch can_use_rod can_use_scroll can_use_shield can_use_skill can_use_wand
34     syn keyword cfArch can_use_weapon carrying casting_time cha changing client_type con
35     syn keyword cfArch confused connected container cursed custom_name dam dam_modifier damned
36     syn keyword cfArch dex direction duration duration_modifier editable editor_folder elevation
37     syn keyword cfArch endlore exp expmul face food friendly gen_sp_armour generator
38     syn keyword cfArch glow_radius grace has_ready_bow has_ready_horn has_ready_rod
39     syn keyword cfArch has_ready_scroll has_ready_skill has_ready_wand has_ready_weapon
40     syn keyword cfArch has_ready_range hitback hp identified immune int inv_locked invisible
41     syn keyword cfArch is_animated is_blind is_buildable is_cauldron is_dust is_floor is_hilly
42     syn keyword cfArch is_lightable is_thrown is_turnable is_used_up is_water is_wooded
43     syn keyword cfArch item_power known_cursed known_magical last_eat last_grace last_heal
44     syn keyword cfArch last_sp level lifesave lore luck magic make_invisible material
45     syn keyword cfArch materialname maxgrace maxhp maxsp monster more move_allow move_block
46     syn keyword cfArch move_off move_on move_slow move_slow_penalty move_state move_type
47     syn keyword cfArch neutral no_attack no_damage no_drop no_fix_player no_magic
48     syn keyword cfArch no_pick no_skill_ident no_steal no_strength nrof object oid one_hit
49     syn keyword cfArch only_attack other_arch overlay_floor path_attuned path_denied
50     syn keyword cfArch path_repelled perm_exp pick_up player_sold pow protected race random_move
51     syn keyword cfArch random_movement randomitems range range_modifier reflect_missile
52     syn keyword cfArch reflect_spell reflecting resist_acid resist_blind resist_cancellation
53     syn keyword cfArch resist_chaos resist_cold resist_confusion resist_counterspell
54     syn keyword cfArch resist_death resist_deplete resist_disease resist_drain
55     syn keyword cfArch resist_electricity resist_fear resist_fire resist_ghosthit
56     syn keyword cfArch resist_godpower resist_holyword resist_internal resist_life_stealing
57     syn keyword cfArch resist_magic resist_paralyze resist_physical resist_poison resist_slow
58     syn keyword cfArch resist_turn_undead resist_weaponmagic run_away scared see_anywhere
59     syn keyword cfArch see_invisible skill slaying sleep slow_move smoothlevel sp speed
60     syn keyword cfArch speed_left splitting stand_still startequip state stealth str subtype
61     syn keyword cfArch tear_down title tooltype treasure type unaggressive undead unique unpaid
62     syn keyword cfArch use_content_on_gen uuid value vulnerable was_wiz wc weapontype weight
63     syn keyword cfArch will_apply wis wiz x xrays y
64     syn keyword cfArch savebed_map bed_x bed_y password explore shoottype bowtype petmode gen_hp
65     syn keyword cfArch gen_sp gen_grace listening peaceful digestion pickup outputs_sync
66     syn keyword cfArch outputs_count usekeys unapply weapon_sp lev_array endplst
67    
68     " Strings: {{{1
69     "=========
70     syn region cfString matchgroup=cfBlock2 start=+^msg$+ end=+^endmsg$+
71     syn region cfString matchgroup=cfArch start=+^name + end=+$+
72     syn region cfString matchgroup=cfArch start=+^name_pl + end=+$+
73     syn region cfString matchgroup=cfBlock2 start=+^anim$+ end=+^mina$+
74    
75     " Numbers: {{{1
76     "=========
77     syn match cfNumber "[-+]\=\(\<\d[[:digit:]_]*L\=\>\|0[xX]\x[[:xdigit:]_]*\>\)"
78    
79     " Highlights: {{{1
80     "============
81     hi def link cfArch cfStatement
82     hi def link cfBlock1 cfSpecial
83     hi def link cfBlock2 cfIdentifier
84     hi def link cfMap cfPreProc
85    
86     hi def link cfNumber Number
87     hi def link cfTodo Todo
88     hi def link cfComment Comment
89     hi def link cfStatement Statement
90     hi def link cfSpecial Special
91     hi def link cfIdentifier Identifier
92     hi def link cfPreProc PreProc
93     hi def link cfString String