[geany/geany] 5c37ca: Fix Asciidoc parser recognition of open block as underline
elextr
git-noreply at xxxxx
Tue Apr 30 04:07:22 UTC 2013
Branch: refs/heads/master
Author: elextr <elextr at gmail.com>
Committer: elextr <elextr at gmail.com>
Date: Tue, 30 Apr 2013 04:07:22 UTC
Commit: 5c37ca87f0a6fc612a083cfb74212970cd4f11c7
https://github.com/geany/geany/commit/5c37ca87f0a6fc612a083cfb74212970cd4f11c7
Log Message:
-----------
Fix Asciidoc parser recognition of open block as underline
Asciidoc overloads lines of dash (-) for heading underline and
open block delimiting (--). This made the parser recognise list
continuation blocks as headings. Now requires more than two
underline characters for a heading.
Modified Paths:
--------------
tagmanager/ctags/asciidoc.c
Modified: tagmanager/ctags/asciidoc.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -168,8 +168,8 @@ static void findAsciidocTags (void)
name_len = name_len_bytes;
/* underlines must be +-2 chars FIXME detect single line titles */
- if (line_len >= name_len - 2 && line_len <= name_len + 2 && name_len > 0 &&
- ispunct(line[0]) && issame((const char*) line))
+ if (line_len > 2 && line_len >= name_len - 2 && line_len <= name_len + 2 &&
+ name_len > 0 && ispunct(line[0]) && issame((const char*) line))
{
char c = line[0];
int kind = get_kind(c);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list