Ben Kurtovic
e949dd8ddd
release/0.4.1
8 years ago
Ben Kurtovic
480f70ff1a
Fix various SmartList bugs.
8 years ago
Ben Kurtovic
ab9f6a97fb
Use weakrefs for SmartList children; remove _ListProxy.detach().
8 years ago
Ben Kurtovic
8e7a600b51
Fix use-after-free bug.
8 years ago
Ben Kurtovic
8963c1f683
Fix Textbuffer_reverse()
8 years ago
Ben Kurtovic
1357da119d
Finish improved Unicode support for PEP 393.
8 years ago
Ben Kurtovic
c1d4feea66
Py_UNICODE -> Unicode everywhere; bugfix for PEP 393.
8 years ago
Ben Kurtovic
5eac0ab16f
More PEP 393 work; update Textbuffer interface and usage.
8 years ago
Ben Kurtovic
2072a10b67
More reworking of CTokenizer Unicode support (incomplete)
8 years ago
Ben Kurtovic
2a3a978986
Incomplete code for C tokenizer textbuffer.
8 years ago
Ben Kurtovic
f16c7e25ca
Fully fix parsing templates with blank names, I hope ( #111 )
8 years ago
John Vandenberg
ab0a58121a
Delay loading of pure Python tokenizer
8 years ago
Ben Kurtovic
699d0638f6
Fix param blanking logic by Template.remove() ( #109 )
8 years ago
Ben Kurtovic
4c2540060b
Fix preserve_spacing behavior in Template.add() on hidden keys ( #109 )
8 years ago
Ben Kurtovic
40fed91806
Fix C tokenizer leaking memory.
8 years ago
Ben Kurtovic
7345a3742e
Fix a thread safety issue involving route state.
9 years ago
Ben Kurtovic
2005efd309
Split up C tokenizer into tag_data, tok_parse, tok_support, tokens.
9 years ago
Ben Kurtovic
0e547aa416
Begin splitting up C tokenizer.
9 years ago
Ben Kurtovic
a8c0ff3f29
Remove stdint.h include for MSVC 2008.
9 years ago
Ben Kurtovic
dad042bc2c
Fix C warnings in MSVC.
9 years ago
Ben Kurtovic
1d5bbbe25b
Disallow < and > in wikilink titles/template names ( fixes #104 )
9 years ago
Ben Kurtovic
f0cacd5a9e
Version bump to 0.4.1; fix broken sed commands in release.sh.
9 years ago
Ben Kurtovic
8f5f9b402d
release/0.4
9 years ago
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9 years ago
Kunal Mehta
0f16d0c63e
Target documentation for Python 3 usage
2 is dead, long live 3. Mainly turning print info a function
and urllib import fixes
9 years ago
Ben Kurtovic
a00c645bd8
Fix handling of tag closes within <nowiki> ( fixes #89 ).
9 years ago
Ben Kurtovic
5f6afe7bb5
Fix version string to 0.4.dev0.
9 years ago
Ben Kurtovic
a15f6172c0
Minor bugfix.
9 years ago
Ben Kurtovic
9fc4b909e1
Refactor a lot of table error recovery code.
9 years ago
Ben Kurtovic
fb261450d8
Port tokenizer updates to C.
9 years ago
Ben Kurtovic
640005dbb2
Tokenizer cleanup; make inline table syntax invalid as it should be.
9 years ago
Ben Kurtovic
913ff590c8
Cleanup; add a missing test.
9 years ago
Ben Kurtovic
504b8bace0
Add test code for a missing branch of Tag.wiki_markup.setter; cleanup.
9 years ago
Ben Kurtovic
5d29bff918
Remove an incorrect usage of Py_XDECREF().
9 years ago
Ben Kurtovic
457355d4bf
Remove try/except that is impossible to fail inside of.
9 years ago
Ben Kurtovic
7489253e32
Break at 80 cols for most lines.
9 years ago
Ben Kurtovic
810c24e123
Don't check quotes when attributes are built from tokens.
9 years ago
David Winegar
1a4c88e11f
Correctly handle no table endings
Tests were not correctly testing the situations without a table close.
Fixed tests and then fixed tokenizers for failing tests. Also refactored
pytokenizer to more closely match the ctokenizer by only holding the
`_parse` methods in the try blocks and no other code.
9 years ago
David Winegar
c802b1f814
Change context to uint64_t
One-line fix
9 years ago
David Winegar
c63108039b
Fix C code to make declarations before statements
Python 3.4 compiles C extensions with the
`-Werror=declaration-after-statement` flag that enforces C90 more
strictly than previous versions. Move all statements after declarations
to make sure this extension builds on 3.4.
9 years ago
David Winegar
1b3e3c3657
Change wiki tags to use style separators
For wiki syntax tables, add `wiki_style_separator` as an attribute
for the Tag node. Also reorder `closing_wiki_markup` property and tests
to match its place in the constructor.
9 years ago
David Winegar
213c105666
Table tags are no longer self-closing
Table tags no longer self-closing. Rows and cells now contain their
contents. Also refactored out an `emit_table_tag` method.
Note: this will require changes to the Tag node and possibly the builder,
those changes will be in the next commit.
9 years ago
David Winegar
7bbeb6899a
Fix ordering of tag representation
Self-closing wiki syntax tags have incorrectly ordered wiki syntax
and padding, fixed the ordering.
9 years ago
David Winegar
0128b1f78a
Implement CTokenizer for tables
CTokenizer is completely implemented in this commit - it didn't
make much sense to me to split it up. All tests passing, memory test
shows no leaks on Linux.
9 years ago
David Winegar
2d945b30e5
Use uint64_t for context
For the C tokenizer, include `<stdint.h>` and use `uint64_t` instead
of `int` for context. Changes to tables mean that context can be
larger than 32 bits, and it is possible for `int` to only have 16
bits anyways (though this is very unlikely).
9 years ago
David Winegar
406dd3a157
All tokenizer end methods return a stack
For C compatability, switch table cell end to return the stack.
Now context is kept by using `keep_context` when calling `self._pop()`.
9 years ago
David Winegar
e6ec5dc4de
Refactor methods to avoid returning tuples
Various changes to avoid returning tuples - working on the C tokenizer
made me realize this was a bad idea for compatability/similarity between
the two.
9 years ago
David Winegar
151a73e437
Fix issue with incorrect table attributes
Fix problem in which invalid table attributes were being parsed
incorrectly. Added tests.
9 years ago
David Winegar
8b5d6f9a3b
Changes to table close handling
Fix problem in which fake table closes were causing a problem inside
cells. Changed inline table handling to fix this.
9 years ago
David Winegar
457b224045
Add padding to table cell tags
Padding now included on all wiki table cells. With wiki table cells
that include attributes, `wiki_markup` is also included (unchanged).
9 years ago