King_DuckZ
619f1ecc75
Orthography fix
2017-11-11 02:44:31 +00:00
King_DuckZ
8f7a569845
Add comments to the settings file
...
Document available options now that comments are supported.
2017-11-11 01:54:21 +00:00
King_DuckZ
f61e9cf8d0
Fix unit test failure - comment skipping seems to be complete now
2017-11-11 01:21:50 +00:00
King_DuckZ
0616f45743
First implementation of a comment skipper.
2017-11-11 00:10:01 +00:00
King_DuckZ
0e478364ac
Version bump to v0.3.0
2017-08-08 10:52:14 +01:00
King_DuckZ
6481fb9c75
Fix simulation test
2017-08-08 10:52:14 +01:00
King_DuckZ
0f6eee2ade
Update SourceHighlight cmake to use the new style.
2017-08-08 10:26:05 +01:00
King_DuckZ
4837f61601
Use the new way to set -pthread.
2017-08-08 10:25:17 +01:00
King_DuckZ
332066e3dc
Add a cache_highlighted setting to let users turn caching off.
2017-08-08 10:13:16 +01:00
King_DuckZ
a517f31a9f
Extract store-async code into a separate private function.
2017-08-08 10:12:36 +01:00
King_DuckZ
3cb89f9b1f
Update submodules
2017-08-08 00:27:43 +01:00
King_DuckZ
b7a5ce09e1
Get the pre-cached highlighted pastie if available.
2017-08-08 00:09:03 +01:00
King_DuckZ
5b33417979
Update html
2017-08-08 00:06:51 +01:00
King_DuckZ
0d19ca50ca
Cache highlighted pastie when saving.
2017-08-07 10:53:23 +01:00
King_DuckZ
47ea09ebdf
Compose token in c++, not in lua.
2017-08-07 10:15:30 +01:00
King_DuckZ
1e79a801ba
Refactor code highlighting functions out of PastieResponse.
2017-08-03 18:45:53 +01:00
King_DuckZ
c25e8f2e49
Rename file to highlight_functions.[ch]pp
2017-08-03 13:23:52 +01:00
King_DuckZ
32bfa18093
Update incredis
2017-07-31 15:58:10 +01:00
King_DuckZ
82769a243b
Update incredis.
2017-06-24 11:46:17 +01:00
King_DuckZ
e42b3db9eb
Version bump to 0.2.5
2017-06-23 21:58:42 +01:00
King_DuckZ
100edb6628
Fix some mistakes.
...
The counter was missing the kamokan prefix
SelfDestruct was not working
2017-06-23 21:57:44 +01:00
King_DuckZ
6222f1e1b1
Use the lua script to save new pasties.
...
I had to add a {store:} prefix, see this:
https://stackoverflow.com/questions/38720084/generate-new-key-inside-evalsha
2017-06-23 21:49:28 +01:00
King_DuckZ
3dc644c91a
Pull out the error reason guessing code into a free function.
2017-06-23 20:50:48 +01:00
King_DuckZ
6589ddd86f
Get rid of the +1 -1 thing.
2017-06-23 19:02:37 +01:00
King_DuckZ
ecb44e725a
Report errors from lua into the response.
2017-06-23 18:58:27 +01:00
King_DuckZ
51088333ed
Fix typo.
2017-06-23 09:16:28 +01:00
King_DuckZ
b421299884
Use lua script to retrieve a pastie from its token.
...
The self-destruct logic is in lua now.
2017-06-22 09:32:42 +01:00
King_DuckZ
48ccb8eec5
Fix warning on clang.
2017-06-21 08:28:16 +01:00
King_DuckZ
41df4dc7f2
Version bump to 0.2.4.
2017-06-21 08:21:08 +01:00
King_DuckZ
726bf7cf90
Update html
2017-06-21 08:18:49 +01:00
King_DuckZ
0372bd9dbe
Update incredis to latest.
2017-06-21 08:15:26 +01:00
King_DuckZ
ec5adffb03
Bugfix - pastie page *is* pastie_page ;)
2017-06-20 21:18:47 +01:00
King_DuckZ
9f20c4885d
Eat up the last newline in a pastie if present.
2017-06-19 20:22:53 +01:00
King_DuckZ
eb02bd617b
Eat up the newline following the html comment.
2017-06-19 20:19:51 +01:00
King_DuckZ
9c0734c31d
Use the largest int type - it should do 8 chars at time on 64-bit.
2017-06-19 19:54:06 +01:00
King_DuckZ
e649e9a196
Stock indices (1-based) in escape_bytes instead of just a flag.
...
The corresponding byte in escape_bytes to every to-be-escaped
characters in the source buffer gets set to the index of the
character in Needle +1. expand() is similar to slow_copy(),
except that it doesn't need to re-compare each character in
the source buffer to check if it needs to be replaced. Each
non-zero byte (that's why indices are 1-based) in parWhich
is the index of the sequence that should be used to replace the
original character (needles[curr_byte-1]).
2017-06-19 19:19:42 +01:00
King_DuckZ
6bee1af080
Fix calculations and add a test for the html escaping code.
2017-06-19 18:08:34 +01:00
King_DuckZ
3de5e3fd27
Remove test text from html.
2017-06-19 15:46:45 +01:00
King_DuckZ
b14aae1fe9
Make is_submit_page() const
2017-06-19 15:46:29 +01:00
King_DuckZ
17a5009f1f
Add a pastie_page mustache token.
2017-06-19 15:45:56 +01:00
King_DuckZ
543b3bdfee
Update html
2017-06-18 16:23:43 +01:00
King_DuckZ
768aefb596
Add pastie_lang mustache when submitting a self-destructing pastie.
2017-06-18 15:12:22 +01:00
King_DuckZ
9deaa8a0b8
Add default_pastie_lang() method and language_selected mustache.
2017-06-18 15:08:44 +01:00
King_DuckZ
00e27a774a
Remove pastie_page token and add a submit_page one instead (bool).
2017-06-18 14:56:06 +01:00
King_DuckZ
070c814387
Bug fix - extra not
2017-06-18 14:51:40 +01:00
King_DuckZ
74fa7231b6
Custom code to escape html - is it faster than houdini?
2017-06-18 14:14:29 +01:00
King_DuckZ
583de98b76
Add colourless mustache token.
2017-06-18 02:29:11 +01:00
King_DuckZ
00c62d4ac6
Improve code that strips unwanted tags from the highlighted html.
...
Provide a highlight_comment mustache tag with the comment that I
stripped from the highlighted pastie.
2017-06-18 02:23:07 +01:00
King_DuckZ
1adff30ffa
Off by one :(
2017-06-18 01:40:39 +01:00
King_DuckZ
e978d87b16
Temporary hack to remove html tags that are causing problems.
...
I will add the comment back in as as separate mustache token. And I
will make this code look a bit nicer.
2017-06-18 01:33:44 +01:00