[geany/geany] e652dd: added filetypes.bibtex to relevant Makefile plus made lookup of bibtex keywords case insensitive

Mirco Schoenfeld git-noreply at xxxxx
Wed Oct 30 00:12:10 UTC 2019


Branch:      refs/heads/master
Author:      Mirco Schoenfeld <mirco.schoenfeld at tum.de>
Committer:   Mirco Schoenfeld <mirco.schoenfeld at tum.de>
Date:        Thu, 11 Jul 2019 07:58:17 UTC
Commit:      e652dd909d1b2858ae699656aa5c8ac89924faaf
             https://github.com/geany/geany/commit/e652dd909d1b2858ae699656aa5c8ac89924faaf

Log Message:
-----------
added filetypes.bibtex to relevant Makefile plus made lookup of bibtex keywords case insensitive


Modified Paths:
--------------
    ctags/parsers/bibtex.c
    data/Makefile.am

Modified: ctags/parsers/bibtex.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -52,7 +52,7 @@ static int getBibWord(const char * ref, const char **ptr)
 {
 	const char *p = *ptr;
 
-	while ((*ref != '\0') && (*p != '\0') && (*ref == *p))
+	while ((*ref != '\0') && (*p != '\0') && (tolower(*ref) == tolower(*p)))
 		ref++, p++;
 
 
@@ -79,7 +79,7 @@ static void createBibTag(int flags, BibKind kind, const char * l)
 		{
 			vStringPut(name, (int) *l);
 			++l;
-		} while ((*l != '\0') && (*l != ','));
+		} while ((*l != '\0') && (*l != ',') && (*l != '}'));
 		if (name->buffer[0] != ',')
 			makeSimpleTag(name, kind);
 	}


Modified: data/Makefile.am
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -11,6 +11,7 @@ filetypes = \
 	filedefs/filetypes.asciidoc \
 	filedefs/filetypes.asm \
 	filedefs/filetypes.batch \
+	filedefs/filetypes.bibtex \
 	filedefs/filetypes.c \
 	filedefs/filetypes.caml \
 	filedefs/filetypes.Clojure.conf \



--------------
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