diff --git a/tagmanager/ctags/asciidoc.c b/tagmanager/ctags/asciidoc.c index 4dfa4059..ffad9c63 100644 --- a/tagmanager/ctags/asciidoc.c +++ b/tagmanager/ctags/asciidoc.c @@ -121,7 +121,8 @@ static int get_kind(char c) /* computes the length of an UTF-8 string - * if the string doesn't look like UTF-8, return -1 */ + * if the string doesn't look like UTF-8, return -1 + * FIXME consider East_Asian_Width Unicode property */ static int utf8_strlen(const char *buf, int buf_len) { int len = 0; @@ -166,7 +167,7 @@ static void findAsciidocTags (void) if (name_len < 0) name_len = name_len_bytes; - /* underlines must be +-2 chars */ + /* 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)) {