aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* content-parser: fixed bug that parsed text with '!' + link as imageRafael G. Martins2016-02-131-0/+14
|
* renderer: fix bug when 'if' evals to false after 'if' evals to trueRafael G. Martins2016-01-251-0/+32
|
* content-parser: encode html entities found in code blocks (fixes #3)Rafael G. Martins2016-01-221-4/+16
|
* template-parser: added whitespace cleaners. needs more tests and docsRafael G. Martins2016-01-142-14/+89
|
* fixed copyrightRafael G. Martins2016-01-088-8/+8
|
* renderer: handle FOREACH_ITEM as a normal variableRafael G. Martins2016-01-081-4/+52
|
* renderer: improved foreach testsRafael G. Martins2016-01-041-2/+8
|
* loader: parse tags as space-separated stringRafael G. Martins2015-12-291-2/+2
|
* renderer: foreach variables should be splitted in spaces rather than commasRafael G. Martins2015-12-291-5/+5
|
* template-parser: do not accept variables startins with numbers and _Rafael G. Martins2015-12-291-1/+73
|
* man: renderer: template-parser: added foreach iterator supportRafael G. Martins2015-12-292-9/+182
|
* Revert "build: removing src/utils and replacing with squareball"Rafael G. Martins2015-12-237-488/+1312
| | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646.
* build: removing src/utils and replacing with squareballRafael G. Martins2015-12-237-1312/+488
| | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils
* content-parser: random parser fixesRafael G. Martins2015-11-041-4/+30
|
* Revert "content-parser: added basic rst-like directives support"Rafael G. Martins2015-11-041-616/+4
| | | | This reverts commit 1faa52052624e7c03256df0c63c43f5d40ddb57a.
* Revert "content-parser: fix memory leak in gcc"Rafael G. Martins2015-11-041-5/+3
| | | | This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746.
* Revert "content-parser: allow directive params with variable prefix"Rafael G. Martins2015-11-041-42/+5
| | | | This reverts commit d29c85ef1751cb46c579b3292f676605d9f86951.
* content-parser: allow directive params with variable prefixRafael G. Martins2015-11-031-5/+42
|
* content-parser: fix memory leak in gccRafael G. Martins2015-11-021-3/+5
|
* content-parser: added basic rst-like directives supportRafael G. Martins2015-11-021-4/+616
| | | | | | | | | | | this patch adds support to something similar to reStructuredText directives [1]. the directive loader isn't implemented yet. also, the current implementation is stricter and differs a lot from the reStructuredText spec. documentation pending. this patch also fixes a few old parser bugs. [1] http://docutils.sourceforge.net/docs/ref/rst/directives.html
* renderer: improved support for comparision between varsRafael G. Martins2015-10-281-0/+54
|
* Allow {% if VALUE1 == VALUE2 %}, with two definesPalmer Dabbelt2015-10-261-3/+3
| | | | | | | | | | | | | | | I was surprised to see that blogc doesn't support testing for equality between two defined values, it just supports comparison between a variable and a constant string. I want to be able to compare two variables so I can build the same source with different "-D" argument on the command line to produce different outputs. This patch adds support for this pattern. I changed the parser to include the '"' at the beginning and end of a string, which allows the renderer to determine if the user passed in a string or a variable name. This is a bit hacky and causes some of the tests to fail -- these tests look at the string values coming out of the parser. I updated the tests to match the new behavior.
* datetime-parser: improve error handlingRafael G. Martins2015-10-241-39/+39
|
* datetime-parser: fixed strptime error handlingRafael G. Martins2015-10-241-0/+45
|
* datetime-parser: initial implementation. not used yetRafael G. Martins2015-10-241-0/+631
|
* error: improved error reporting for parsersRafael G. Martins2015-10-243-27/+78
| | | | it will now report the line and the approximate position of the error.
* error: added missing test for crlfRafael G. Martins2015-10-231-0/+13
|
* tempalte-parser: added tests with \r\n line endingsRafael G. Martins2015-10-221-0/+71
|
* source-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-0/+32
|
* content-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-2/+500
|
* content-parser: added missing testRafael G. Martins2015-10-121-1/+3
|
* content-parser: added id attributes to headersRafael G. Martins2015-10-122-23/+51
| | | | the id is a slugified version of the (unparsed) header content.
* renderer: accept empty list of files with -lRafael G. Martins2015-10-071-0/+30
|
* source-parser: fixed error messageRafael G. Martins2015-09-191-1/+1
|
* source-parser: forbid BLOGC_VERSION variable in source filesRafael G. Martins2015-08-141-0/+18
|
* content-parser: implemented multiline support for listsRafael G. Martins2015-08-131-7/+89
|
* content-parser: fixed start_state bug.Rafael G. Martins2015-07-091-2/+2
|
* content-parser: fixed bug when using inline delim in link titleRafael G. Martins2015-07-041-0/+8
|
* tests: test functions must be marked as staticRafael G. Martins2015-06-131-22/+22
|
* content-parser: implemented excerpt, and now for good!Rafael G. Martins2015-06-133-48/+219
|
* Revert "added content excerpt support"Rafael G. Martins2015-06-122-85/+6
| | | | This reverts commit 1851274f9524c462806d6ab64e024effb0392231.
* added content excerpt supportRafael G. Martins2015-06-112-6/+85
|
* content-parser: added "automatic" linksRafael G. Martins2015-06-101-2/+33
|
* content-parser: fixed inline parserRafael G. Martins2015-05-291-4/+66
|
* source-parser: fixed reserved variablesRafael G. Martins2015-05-281-0/+90
|
* loader: implemented pagination filterRafael G. Martins2015-05-281-0/+469
|
* loader: implemented tag filterRafael G. Martins2015-05-271-0/+47
|
* content-parser: random fixes and more tests for inline content parserRafael G. Martins2015-05-271-0/+200
|
* content-parser: random fixes, more testsRafael G. Martins2015-05-271-0/+144
|
* fixed copyrightRafael G. Martins2015-05-257-7/+7
|