Ben Kurtovic
|
08cafc0576
|
Raise ParserError for internal problems. Improve coverage. Cleanup.
|
пре 10 година |
Ben Kurtovic
|
02eff0fc49
|
Fully fix #74. Add another tokenizer test.
|
пре 10 година |
Ben Kurtovic
|
34a6c7cc4c
|
Typo fix.
|
пре 10 година |
Ben Kurtovic
|
b4b62026f8
|
Update changelog, docs.
|
пре 10 година |
Ben Kurtovic
|
0101c038fb
|
Python 3, grr.
|
пре 10 година |
Ben Kurtovic
|
0497b54f03
|
Fix _handle_single_tag_end()'s token search order (fixes #74)
|
пре 10 година |
Ben Kurtovic
|
d342831af8
|
Allow passing skip_style_tags to parse() (fixes #73)
|
пре 10 година |
Marcio Faustino
|
f616e6b3b7
|
Avoid custom constructor and sub-class `dict` directly instead.
Before:
$ python -m timeit -s 'from mwparserfromhell.parser.tokens import Text' 'Text(text = "abc")'
1000000 loops, best of 3: 0.91 usec per loop
After:
$ python -m timeit -s 'from mwparserfromhell.parser.tokens import Text' 'Text(text = "abc")'
1000000 loops, best of 3: 0.223 usec per loop
|
пре 10 година |
Ben Kurtovic
|
5c5fd6b3cb
|
Fix a bug involving nested links (closes #61 and #62).
|
пре 10 година |
Ben Kurtovic
|
1312a1fb8a
|
Some clean up for Python 2.6 support.
* Removed unittest2 dependency on Python >2.6.
* Moved discover_tests.py into tests/.
* tokenizer.c: Fixed errors noted by -Wshorten-64-to-32.
|
пре 10 година |
Marcio Faustino
|
ee194fb07a
|
Use a generator expression instead to support Python 2.6.
|
пре 10 година |
Ben Kurtovic
|
e5f17eea00
|
Update copyright notices for 2014.
|
пре 10 година |
Ben Kurtovic
|
45aec31629
|
Move range/xrange compatibility code to compat.py.
|
пре 10 година |
Ben Kurtovic
|
1946cf621d
|
Add a temporary skip_style_tags until we resolve some issues.
|
пре 11 година |
Ben Kurtovic
|
066049b46a
|
Update email address.
|
пре 11 година |
Ben Kurtovic
|
38050f6878
|
C code cleanup and speed improvements.
|
пре 11 година |
Ben Kurtovic
|
951a8737a5
|
Don't pass underlying context if this is a bracketed link.
|
пре 11 година |
Ben Kurtovic
|
287bf71158
|
Condense code.
|
пре 11 година |
Ben Kurtovic
|
1bf9868753
|
Proper sentinel handling with free links in the C tokenizer.
|
пре 11 година |
Ben Kurtovic
|
565a04256f
|
Proper sentinel handling with free links in the Python tokenizer.
|
пре 11 година |
Ben Kurtovic
|
77092e066c
|
Fix C tokenizer behavior re: some single_only tag edge cases.
|
пре 11 година |
Ben Kurtovic
|
6784ff73bf
|
Fix an edge case when we recurse too deeply.
|
пре 11 година |
Ben Kurtovic
|
bdfd0632b3
|
A couple very minor nitpicks.
|
пре 11 година |
Ben Kurtovic
|
4d04cae780
|
Fix a segfault with GCC.
|
пре 11 година |
Ben Kurtovic
|
fcdc0abd22
|
Fix autofail contexts.
|
пре 11 година |
Ben Kurtovic
|
67f1762aa4
|
Doc updates, and allow passing a starting context to tokenize().
|
пре 11 година |
Ben Kurtovic
|
f1b95758d6
|
Squash a memory leak.
|
пре 11 година |
Ben Kurtovic
|
2561cf5b5e
|
Fix all bugs in C implementation of external links.
|
пре 11 година |
Ben Kurtovic
|
b9324eb658
|
Fix Python tokenizer to not generate empty Text tokens.
|
пре 11 година |
Ben Kurtovic
|
c1b502bbe6
|
Finish external links implementation.
|
пре 11 година |
Ben Kurtovic
|
7dcfa3fe92
|
Implement Tokenizer_really_parse_external_link(), some other fixes
|
пре 11 година |
Ben Kurtovic
|
6ecf15cad4
|
Tokenizer_parse_external_link()
|
пре 11 година |
Ben Kurtovic
|
a1948b06aa
|
Tokenizer_parse_bracketed/free_uri_scheme(), other adjustments
|
пре 11 година |
Ben Kurtovic
|
7b84b3f0df
|
Refactor out C's is_marker(); hooks for ext links.
|
пре 11 година |
Ben Kurtovic
|
6eb72c56eb
|
Some cleanup.
|
пре 11 година |
Ben Kurtovic
|
bd10aab823
|
Finish external links.
|
пре 11 година |
Ben Kurtovic
|
432198547a
|
Fix some external links; refactor into different methods.
|
пре 11 година |
Ben Kurtovic
|
da272ae10a
|
Start implementation of external links in Python.
|
пре 11 година |
Ben Kurtovic
|
d42e05a554
|
Implement improved wikilink handling.
|
пре 11 година |
Ben Kurtovic
|
5e6e5b6301
|
tag_defs.py -> definitions.py; more outline stuff
|
пре 11 година |
Ben Kurtovic
|
cbf67c7842
|
Add hooks for some ext link stuff; add a INVALID_LINK aggregate context.
|
пре 11 година |
Ben Kurtovic
|
88f4fa7c37
|
Add external link contexts; reorder stuff for consistency.
|
пре 11 година |
Ben Kurtovic
|
8fe8b1fef5
|
Implement ExternalLinks as tokens and in the builder.
|
пре 11 година |
Ben Kurtovic
|
53c26589ee
|
Some node fixes; attributes with empty values now display correctly.
|
пре 11 година |
Ben Kurtovic
|
0d934f8ad1
|
Squash a couple memory leaks.
|
пре 11 година |
Ben Kurtovic
|
8923d96a57
|
More unification.
|
пре 11 година |
Ben Kurtovic
|
5e8e050ca3
|
A few tweaks; py3k support now complete.
|
пре 11 година |
Ben Kurtovic
|
db86176c08
|
wiki_markup attr should be unicode, not bytes
|
пре 11 година |
Ben Kurtovic
|
b5ec7f3beb
|
Fix py3k module importing; stick a bunch of macros in one place.
|
пре 11 година |
Ben Kurtovic
|
e02ad8239f
|
Make load_entitydefs() work on Python 3.
|
пре 11 година |