Fix parsing when heading tags contain attributes (part of #1896068).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2550 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-05-04 17:39:38 +00:00
parent 6563362688
commit 5ec3c087f3
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,8 @@
not be saved.
* THANKS, src/about.c:
Update email address of Dormouse Young.
* tagmanager/html.c:
Fix parsing when heading tags contain attributes (part of #1896068).
2008-04-27 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -42,15 +42,15 @@ static void installHtmlRegex (const langType language)
"\\2", "m,member,named anchors", "i");
addTagRegex (language,
"<h1>" INNER_HEADING "</h1>",
"<h1.*>" INNER_HEADING "</h1>",
"\\1", "n,namespace,H1 heading", "i");
addTagRegex (language,
"<h2>" INNER_HEADING "</h2>",
"<h2.*>" INNER_HEADING "</h2>",
"\\1", "c,class,H2 heading", "i");
addTagRegex (language,
"<h3>" INNER_HEADING "</h3>",
"<h3.*>" INNER_HEADING "</h3>",
"\\1", "v,variable,H3 heading", "i");
addTagRegex (language, "^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*\\(",