aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* content-parser: do not convert -- and --- to &ndash and &mdash inside codeRafael G. Martins2016-04-171-1/+3
|
* main: loader: use file utils from squareballRafael G. Martins2016-03-192-61/+17
|
* *: use squareball error infrastructureRafael G. Martins2016-03-1314-105/+65
|
* content-parser: fixed em/en-dash logicRafael G. Martins2016-03-051-2/+2
|
* content-parser: fixed a bug in previous patchRafael G. Martins2016-03-051-0/+3
|
* content-parser: convert -- and --- to &ndash and &mdashRafael G. Martins2016-03-051-0/+15
|
* build: replace src/utils with squareballRafael G. Martins2016-02-2618-1005/+303
|
* content-parser: fixed parser bug when handling linksRafael G. Martins2016-02-211-2/+11
| | | | | | do not handle something like this as a valid link: [asd] asd (asd)
* content-parser: fixed bug that parsed text with '!' + link as imageRafael G. Martins2016-02-131-4/+8
|
* content-parser: removed goto jumpsRafael G. Martins2016-01-311-18/+7
|
* renderer: fix bug when 'if' evals to false after 'if' evals to trueRafael G. Martins2016-01-251-5/+5
|
* content-parser: use size_t instead of unsigned len when handling stringsRafael G. Martins2016-01-221-2/+2
|
* content-parser: encode html entities found in code blocks (fixes #3)Rafael G. Martins2016-01-222-2/+39
|
* utils: string: strip form-feed and vertical-tab chars as whitespacesRafael G. Martins2016-01-141-2/+4
|
* template-parser: added whitespace cleaners. needs more tests and docsRafael G. Martins2016-01-144-22/+129
|
* fixed copyrightRafael G. Martins2016-01-0822-22/+22
|
* renderer: handle FOREACH_ITEM as a normal variableRafael G. Martins2016-01-082-10/+15
|
* loader: parse tags as space-separated stringRafael G. Martins2015-12-291-3/+6
|
* renderer: foreach variables should be splitted in spaces rather than commasRafael G. Martins2015-12-291-4/+8
|
* template-parser: do not accept variables startins with numbers and _Rafael G. Martins2015-12-291-9/+10
|
* man: renderer: template-parser: added foreach iterator supportRafael G. Martins2015-12-294-1/+141
|
* Revert "build: removing src/utils and replacing with squareball"Rafael G. Martins2015-12-2318-273/+942
| | | | This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646.
* build: removing src/utils and replacing with squareballRafael G. Martins2015-12-2318-942/+273
| | | | | squareball is a new general purpose library for C99, based on the code removed from src/utils
* main: honour locales from environment variablesRafael G. Martins2015-12-021-0/+3
|
* content-parser: random parser fixesRafael G. Martins2015-11-041-0/+18
|
* Revert "content-parser: added basic rst-like directives support"Rafael G. Martins2015-11-043-265/+19
| | | | This reverts commit 1faa52052624e7c03256df0c63c43f5d40ddb57a.
* Revert "content-parser: fix memory leak in gcc"Rafael G. Martins2015-11-041-1/+1
| | | | This reverts commit 8c5ad9b304fd405380501f5acd1f7c809a1a2746.
* Revert "content-parser: allow directive params with variable prefix"Rafael G. Martins2015-11-041-28/+19
| | | | This reverts commit d29c85ef1751cb46c579b3292f676605d9f86951.
* Revert "content-parser: handle errors (that are handler as warnings) in ↵Rafael G. Martins2015-11-045-13/+4
| | | | | | directives" This reverts commit 56736b7b39218c10efd64f305f7a35df9d4bc0af.
* content-parser: handle errors (that are handler as warnings) in directivesRafael G. Martins2015-11-045-4/+13
|
* content-parser: allow directive params with variable prefixRafael G. Martins2015-11-031-19/+28
|
* content-parser: fix memory leak in gccRafael G. Martins2015-11-021-1/+1
|
* content-parser: added basic rst-like directives supportRafael G. Martins2015-11-023-19/+265
| | | | | | | | | | | 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-282-59/+56
|
* Allow {% if VALUE1 == VALUE2 %}, with two definesPalmer Dabbelt2015-10-262-7/+38
| | | | | | | | | | | | | | | 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.
* error: removed dead assignmentRafael G. Martins2015-10-261-1/+1
|
* datetime-parser: remove uneeded includeRafael G. Martins2015-10-251-1/+0
|
* main: fix build on windowsRafael G. Martins2015-10-241-0/+4
|
* datetime-parser: improve error handlingRafael G. Martins2015-10-244-56/+55
|
* datetime-parser: fixed strptime error handlingRafael G. Martins2015-10-241-3/+4
|
* datetime-parser: initial implementation. not used yetRafael G. Martins2015-10-244-0/+396
|
* error: improved error reporting for parsersRafael G. Martins2015-10-241-11/+39
| | | | it will now report the line and the approximate position of the error.
* content-parser: fix commentRafael G. Martins2015-10-221-1/+1
|
* content-parser: replace useless array with booleanRafael G. Martins2015-10-221-6/+5
|
* source-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-0/+2
|
* content-parser: handle \r\n line endings properlyRafael G. Martins2015-10-221-31/+79
|
* file: added missing headerRafael G. Martins2015-10-121-0/+1
|
* content-parser: added id attributes to headersRafael G. Martins2015-10-122-2/+31
| | | | the id is a slugified version of the (unparsed) header content.
* main: no need to honor umask manuallyRafael G. Martins2015-10-111-8/+1
|
* main: man: fixed '-l' docsRafael G. Martins2015-10-071-2/+2
|