aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-27 20:34:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-27 20:34:41 -0700
commit44ecb92c16b5f88cf5d3c7d6648db5de33c27939 (patch)
tree3cad482aeefcfd18e22f3318f1df6bd7c4c87de9 /spec.txt
parent8a8efc0c8977add17d077701a4cf7cb3d2e5bfd2 (diff)
Clarified left-flanking and right-flanking.
Say explicitly that the beginning and end of line count as whitespace for purposes of this definition. Otherwise the opener in `_foo_` is both left and right flanking, as @jmendeth pointed out. Closes #310.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec.txt b/spec.txt
index 3c1f712..c2a867d 100644
--- a/spec.txt
+++ b/spec.txt
@@ -4583,14 +4583,16 @@ characters that is not preceded or followed by a `_` character.
A [left-flanking delimiter run](@left-flanking-delimiter-run) is
a [delimiter run] that is (a) not followed by [unicode whitespace],
and (b) either not followed by a [punctuation character], or
-preceded by [unicode whitespace] or a [punctuation character] or
-the beginning of a line.
+preceded by [unicode whitespace] or a [punctuation character].
+For purposes of this definition, the beginning and the end of
+the line count as unicode whitespace.
A [right-flanking delimiter run](@right-flanking-delimiter-run) is
a [delimiter run] that is (a) not preceded by [unicode whitespace],
and (b) either not preceded by a [punctuation character], or
-followed by [unicode whitespace] or a [punctuation character] or
-the end of a line.
+followed by [unicode whitespace] or a [punctuation character].
+For purposes of this definition, the beginning and the end of
+the line count as unicode whitespace.
Here are some examples of delimiter runs.