diff options
author | jfieber <jfieber@FreeBSD.org> | 1996-05-20 05:06:47 +0000 |
---|---|---|
committer | jfieber <jfieber@FreeBSD.org> | 1996-05-20 05:06:47 +0000 |
commit | 6aebe8c012d1196677ccca605581ab4b22d62f44 (patch) | |
tree | e80a97c1a0b28f791b0b616fcc69e82409349a4c /usr.bin/sgmls | |
parent | 92f8f3c6af8d14b480be44f95820265e4bb48e8b (diff) | |
download | FreeBSD-src-6aebe8c012d1196677ccca605581ab4b22d62f44.zip FreeBSD-src-6aebe8c012d1196677ccca605581ab4b22d62f44.tar.gz |
Small patch from James Clark, fixes underscore handling in the SGML
declaration parsing.
Diffstat (limited to 'usr.bin/sgmls')
-rw-r--r-- | usr.bin/sgmls/sgmls/sgmldecl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sgmls/sgmls/sgmldecl.c b/usr.bin/sgmls/sgmls/sgmldecl.c index 1ba7fe7..d9f06b3 100644 --- a/usr.bin/sgmls/sgmls/sgmldecl.c +++ b/usr.bin/sgmls/sgmls/sgmldecl.c @@ -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) |