Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BibTeX: accept "." and "/" as parts of a bib entry #3824

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Units/parser-bibtex.r/bib-simple.d/expected.tags
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ john_doe input.bib /^@string{john_doe = "Prof. Dr. John Doe"}$/;" s language:Bib
xx_thoughts input.bib /^@unpublished{xx_thoughts,$/;" u language:BibTeX
hicks:2001 input.bib /^@Book{hicks:2001,$/;" b language:BibTeX
knuthwebsite input.bib /^@online{knuthwebsite,$/;" V language:BibLaTeX
10.1145/605432.605407 input.bib /^@Article{10.1145\/605432.605407,$/;" a language:BibTeX
7 changes: 7 additions & 0 deletions Units/parser-bibtex.r/bib-simple.d/input.bib
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,10 @@ @online{knuthwebsite
url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
keywords = "latex,knuth"
}

@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 @@ -34,7 +34,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