From c0df1e545f2c23baada1282a39d41df78c1210d0 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Thu, 8 Nov 2007 12:49:13 +1030 Subject: [PATCH] * wesnoth-mode.el: Stripped information which should be part of the devel branch. --- wesnoth-mode.el | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/wesnoth-mode.el b/wesnoth-mode.el index 22c8b1e..5e5af22 100644 --- a/wesnoth-mode.el +++ b/wesnoth-mode.el @@ -69,35 +69,6 @@ indent the line." "#e\\(?:lse\\|nd\\(?:\\(?:de\\|i\\)f\\)\\)" "Regular expression to match \"closing\" preprocessor statements.") -(defvar wesnoth-wml-structure -'(("multiplayer" ("id" "allow_new_game" "next_scenario" "description" "objectives" "name" "map_data" "turns" "turn_at" "random_start_time" "music" "victory_when_enemies_defeated" "experience_modifier" "theme" "map_generation") ("music" "story" "time" "illuminated_time" "time_area" "side" "event" "generator")) - ("test" ("id" "allow_new_game" "next_scenario" "description" "objectives" "name" "map_data" "turns" "turn_at" "random_start_time" "music" "victory_when_enemies_defeated" "experience_modifier" "theme" "map_generation") ("music" "story" "time" "illuminated_time" "time_area" "side" "event" "generator")) - ("tutorial" ("id" "allow_new_game" "next_scenario" "description" "objectives" "name" "map_data" "turns" "turn_at" "random_start_time" "music" "victory_when_enemies_defeated" "experience_modifier" "theme" "map_generation") ("music" "story" "time" "illuminated_time" "time_area" "side" "event" "generator")) - ("scenario" ("id" "allow_new_game" "next_scenario" "description" "objectives" "name" "map_data" "turns" "turn_at" "random_start_time" "music" "victory_when_enemies_defeated" "experience_modifier" "theme" "map_generation") ("music" "story" "time" "illuminated_time" "time_area" "side" "event" "generator")) - ("advances" '() '()) - ("team" ("damage_inflicted" "damage_taken" "recall_cost" "recruit_cost") ("recruits" "cecalls" "advances" "deaths" "killed" "attacks" "defends")) - ("abilities" ("name" "name_inactive" "description" "description_inactive" "affect_self" "affect_allies" "affect_enemies" "cumulative" "id") ("heals" "regenerate" "resistance" "leadership" "skirmisher" "illuminates" "teleport" "hides" "adjacent_description" "filter" "filter_adjactent" "filter_adjacent_location" "affect_adjacent" "filter_self" "filter_base_value")) - ("heals" ("value" "poison") ()) - ("regenerate" ("value" "poison") ()) - ("resistance" ("value" "max_value" "add" "multiply" "apply_to" "active_on") ()) - ("leadership" ("value") ()) - ("illuminates" ("value" "max_value")) - ("hides" ("alert")) - ("specials" () ("damage" "attacks" "chance_to_hit" "slow" "poison" "stones" "berserk" "firststrike" "drains" "plague")) - ("damage" ("name" "name_inactive" "value" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("attacks" ("name" "name_inactive" "value" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("chance_to_hit" ("name" "value" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("slow" ("name" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("poison" ("name" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("stones" ("name" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("berserk" ("name" "values" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("firststrike" ("name" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("drains" ("name" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("plague" ("name" "type" "name_inactive" "description" "description_inactive" "active_on" "multiply" "cumulative" "id" "active_on" "apply_to") ("filter_adjacent" "filter_adjactent_location" "filter_self" "filter_opponent" "filter_attacker" "filter_defender" "filter_base_value")) - ("unit" ("advancefrom" "advanceto" "alignment" "cost" "experience" "gender" "hide_help" "hitpoints" "id" "level" "movement" "movetype" "name" "num_traits" "profile" "race" "unit_description" "undead_variation" "usage" "zoc") ("advancement" "base_unit" "attack" "defend" "death" "teleport" "extra_anim" "event" "variation" "male" "female" "abilities")) - ("about" ("title" "artists" "units" "balancing" "text") ("entry")) - ("ai" ("time_of_day" "turns" "ai_algorithm" "python_script" "recruitment_pattern" "aggression" "caution" "village_value" "leader_value" "villages_per_scout" "recruitment_ignore_bad_movement" "recruitment_ignore_bad_combat" "passive_leader" "attack_depth" "simple_targetting" "scout_village_targetting" "grouping" "protect_leader") ("protect_location" "protect_unit" "target" "avoid" "leader_goal")))) - (defvar wesnoth-mode-hook nil) (defvar wesnoth-mode-map () @@ -532,26 +503,6 @@ element will be displayed in the minibuffer." "]")))) (or expected (concat "[/" (car unmatched-tag-list) "]")))))) -(defun wesnoth-analyse-structure () - (interactive) - (save-excursion - (when (wesnoth-wml-start-pos) - (goto-char 0) - ;; search for both keys and tags - ;; if looking at a tag, append to list of tags - ;; check that tag is a possible child - ;; assess all keys found - ;; remove tag from list when closing is found - ;; repeat generating a list of errors/warnings as it goes (in compile buffer) - (while taglist -;; (search-forward-regexp "\\[\\(\\w+\\)\\]") - (let ((tag (match-string 1)) - (info (member tag wesnoth-wml-structure)) - (keys (car info)) - (subtags (cdr info)) - (tag-end (wesnoth-jump-to-matching))) - ))))) - (defun wesnoth-fix-structure () "Attempt to fix all faults in the structure of the current buffer." (interactive) -- 2.11.4.GIT