| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| | |
The API made little sense; `n' was being set almost randomly to "some
byte at the current position."
|
| | |
|
| |
|
|\
| |
| |
| |
| |
| | |
git-subtree-dir: lib/chame0
git-subtree-mainline: cb1ec272443328c80d9e4bfb17f4853ff2745b16
git-subtree-split: 93f31143b25349ed071c6f564ecce45a5c2b351c
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
+ some other small code quality improvements
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* remove unnecessary stringify + function
* remove test artifacts
* update chagashi submodule
* add test to skipDirs
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
not willing to put up with nimble any longer, makefile it is.
|
| | |
|
| | |
|
| |
| |
| |
| | |
It never worked properly, it's under-specified, and I don't need it.
|
| |
| |
| |
| | |
with GCC this shaves 64K off the output
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
it causes problems with the naive implementation of TagType enum
extension (as we do it in Chawan); better to just convert it dynamically
in the very very very rare case that it's needed.
|
| |
| |
| |
| |
| | |
lower-case `z' was missing from the list of generated end indices, which
broke character entities starting with `z'.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
htmlparser:
* use when declared() to avoid taskRequires for low nim versions
* remove MappedAtom, use TagType instead
* remove TokenResult enum (just use ParseResult)
* use result of atomToTagType instead of re-doing it everywhere
* simplify until()
* simplify closeP()
htmltokenizer:
* simplify numericCharacterReferenceEndState
* unify generated eatStrNoCase functions
doc:
* fix incorrect header tags
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This was getting miscompiled on ARM Nim 1.6.14 + GCC into an infinite
loop, so we get rid of the loop completely. (Also, remove the reconsumes
where possible, and make infinite looping impossible by only doing a
second pass when reconsume is absolutely necessary.)
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
8de948e was an incomplete fix, and of course I only realize this after
pushing out a new version :(
Specifically, the inner loop of findCharRef can exit in *two* places:
a) when an entry with a non-matching initial char is found
b) when no more entries exist
and the previous patch only fixed case a).
|
| | |
|
| |
| |
| |
| |
| |
| | |
See the attached test case; the last consumed character in findCharRef
reference was being incorrectly flushed, even when it was meant to be
reconsumed as markup.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Introduced in ff757ac0, by an incorrect replacement of
`attrs.findAttr(parser.atomMap[ATOM_FORM]) == -1` with
`parser.atomMap[ATOM_FORM] in htmlAttrs` flipping the logic.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
We can just use tmp instead of attrn.
|
| | |
|
| | |
|
| |
| |
| |
| | |
enables document.write
|