Skip to content

Commit

Permalink
added filetypes.bibtex to relevant Makefile plus made lookup of bibte…
Browse files Browse the repository at this point in the history
…x keywords case insensitive
  • Loading branch information
Mirco Schoenfeld committed Jul 11, 2019
1 parent 82e09b5 commit e652dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctags/parsers/bibtex.c
Expand Up @@ -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++;


Expand All @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions data/Makefile.am
Expand Up @@ -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 \
Expand Down

0 comments on commit e652dd9

Please sign in to comment.