Skip to content

Commit

Permalink
BibTeX: accept "." and "/" as parts of a bib entry
Browse files Browse the repository at this point in the history
Close #3823.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Sep 18, 2023
1 parent e8780c4 commit 90b82d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Units/parser-bibtex.r/bib-simple.d/input.bib
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,11 @@ @Book{hicks:2001
edition = "1st,",
isbn = "0-69-697269-4"
}


@Comment Taken from https://github.com/universal-ctags/ctags/issues/3802#issuecomment-1723511773
@Comment submitted by @andregpss (André Silva)
@Article{10.1145/605432.605407,
author = {Levis, Philip and Culler, David},
title = {Mat'{e}: A Tiny Virtual Machine for Sensor Networks},
year = {2002} }
2 changes: 1 addition & 1 deletion parsers/bibtex.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define isType(token,t) (bool) ((token)->type == (t))
#define isKeyword(token,k) (bool) ((token)->keyword == (k))
#define isIdentChar(c) \
(isalpha (c) || isdigit (c) || (c) == '_' || (c) == '-' || (c) == '+' || (c) == ':')
(isalpha (c) || isdigit (c) || (c) == '_' || (c) == '-' || (c) == '+' || (c) == ':' || (c) == '.' || (c) == '/')

/*
* DATA DECLARATIONS
Expand Down

0 comments on commit 90b82d1

Please sign in to comment.