Small patch from James Clark, fixes underscore handling in the SGML
declaration parsing.
This commit is contained in:
parent
d7f1a3eb6a
commit
93f6fc9b23
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15825
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user