* wesnoth-mode.el (wesnoth-preprocessor-regexp): 'ifn?def' and 'undef' must
commit0c532b393fec9f10d06e7523af9ae1dacf9b4189
authorChris Mann <chris@gnawty.home>
Thu, 16 Oct 2008 12:01:03 +0000 (16 22:31 +1030)
committerChris Mann <chris@gnawty.home>
Thu, 16 Oct 2008 12:01:03 +0000 (16 22:31 +1030)
tree3e1a47c97c67d7292d7ac8312ca118827ff19847
parent4a6d259df886b657dd15e0062f969f051583d5c3
* wesnoth-mode.el (wesnoth-preprocessor-regexp): 'ifn?def' and 'undef' must
  have trailing space.
  (wesnoth-mode-map): Added wesnoth-complete-preprocessor.
  (wesnoth-element-closing, wesnoth-element-opening, wesnoth-element): Removed
  constants.
  (wesnoth-element-closing, wesnoth-element-opening, wesnoth-element): New
  functions.
  (wesnoth-element-completion): Fix `wesnoth-history-list' usage.
  (wesnoth-parent-tag): Rewritten to be more efficient.
  (wesnoth-indent-preprocessor): New function.
  (wesnoth-indent-or-complete): Added preprocessor completion.
  (wesnoth-with-fake-insert): New macro.
  (wesnoth-complete-tag): Partially rewritten.
  (wesnoth-insert-tag): Support inserting preprocessor pairs.
  (wesnoth-nth-pair-position, wesnoth-navigate-element, wesnoth-wml-start-pos,
  wesnoth-indent, wesnoth-determine-context, wesnoth-check-wml,
  wesnoth-check-structure): Updated for new wesnoth-element functions.
  (wesnoth-search-for-matching-tag): Only return non-nil when nesting is
  correct.  Updated for new wesnoth-element functions.
  (wesnoth-jump-to-matching): Support matching #define..#enddef and
  #ifn?def..#endif pairs.
  (wesnoth-find-macro-definitions): Fix a bug where incorrect nesting can
  cause nil openings to be paired with closings, causing errors elsewhere.
wesnoth-mode.el