On Sep 16, 2011, at 08:17, Adam R. Maxwell wrote:

> Doesn't btparse treat % at top level as a comment?

Edit: yes, it does.  From bt_language.pod

   COMMENT               \%~[\n]*\n
   WHITESPACE            [\ \r\t]+
   JUNK                  ~[\@\n\ \r\t]+

Old-school bibtex users remove the @ from an entry to comment it out, but 
btparse calls that "JUNK" in its lexer, and you get a log message about "foo 
characters of junk seen at toplevel" or something.  Lines starting with % are 
considered comments by btparse, and it doesn't log them (which is why Mike used 
% in BibDesk's file header template).

I suspect no one on the list really cares about these arcane aspects of parsing 
BibTeX databases, but the point is that there are some subtleties that can end 
up confusing users (and anything considered "JUNK" in your file will be gone 
after you save it in BibDesk).

-- 
Adam


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to