summaryrefslogtreecommitdiff
path: root/src/scanners.re
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:18:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:18:56 -0800
commit04f0cb8ea5e1f31409c11ed445bac13adca03d11 (patch)
tree8355b07ef748377d42c6fd2a657884a0d5804196 /src/scanners.re
parentd75875321222b62430e88e11c91c23a52730db0e (diff)
Put check for fence close with the other checks for end-of-block.
This is a more logical arrangement and follows recent changes to the JS implementation.
Diffstat (limited to 'src/scanners.re')
-rw-r--r--src/scanners.re3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scanners.re b/src/scanners.re
index ca25c16..d83efde 100644
--- a/src/scanners.re
+++ b/src/scanners.re
@@ -216,7 +216,8 @@ int _scan_close_code_fence(const unsigned char *p)
const unsigned char *marker = NULL;
const unsigned char *start = p;
/*!re2c
- ([`]{3,} | [~]{3,}) / spacechar* [\n] { return (p - start); }
+ [`]{3,} / [ \t]*[\n] { return (p - start); }
+ [~]{3,} / [ \t]*[\n] { return (p - start); }
.? { return 0; }
*/
}