Small patch from James Clark, fixes underscore handling in the SGML

declaration parsing.
This commit is contained in:
John Fieber 1996-05-20 05:06:47 +00:00
parent d7f1a3eb6a
commit 93f6fc9b23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15825

View File

@ -955,7 +955,8 @@ UNCH *tbuf;
if (c < 0)
bad = 1;
else if ((char_flags[c] & (CHAR_SIGNIFICANT | CHAR_MAGIC))
&& c != '.' && c != '-') {
&& c != '.' && c != '-'
&& !(c == '_' && i >= 2)) {
int class = lextoke[c];
if (class == SEP || class == SP || class == NMC
|| class == NMS || class == NU)