ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/deliantra/util/maps/cfmap.vim
Revision: 1.2
Committed: Fri Jan 5 23:58:57 2007 UTC (19 years, 9 months ago) by pippijn
Branch: MAIN
Changes since 1.1: +11 -0 lines
Log Message:
documentation

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