From da844c7584abf8660ff9057747b2c61f1dcc6aa5 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sat, 29 Nov 2008 16:02:03 +1030 Subject: [PATCH] * wesnoth-mode.el (wesnoth-element-type): No longer treat pathnames as macros. --- wesnoth-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wesnoth-mode.el b/wesnoth-mode.el index 5d09b9f..489890b 100644 --- a/wesnoth-mode.el +++ b/wesnoth-mode.el @@ -349,8 +349,9 @@ element; the position of the start of the element and the position of the end of the element. `point' must be at the start of the element." (let ((element-matches - '(("{\\(\\w\\|_\\)+" . macro) - ("\\[[^/]+?\\]" . tag-opening) + '(("{\\(.*[/\].*\\)}" . nil) + ("{\\(\\w\\|_\\)+" . macro) + ("\\[\\+?[^/]+?\\]" . tag-opening) ("\\[/.+?\\]" . tag-closing) ("\\(\\w\\|_\\)+[\t ]*=" . attribute) ("#\\(enddef\\|define \\|e\\(lse\\|nd\\(\\(de\\|i\\)f\\)\\)\\|\\(ifn?\\|un\\)def \\)" . preprocessor) -- 2.11.4.GIT