cmark

My personal build of CMark ✏️

Commit
d943eed9db668bb3399264d5c978e20882bc6098
Parent
18a1522edd5a81cee3d78978b81a8b3c93891a61
Author
John MacFarlane <jgm@berkeley.edu>
Date

spec: Define ascii punctuation character separately.

That's because some ascii punctuation characters (like `<`) are not in a "P" character class (they are mathematical symbols). They need to be escapable so we'll treat them as "punctuation" here.

Diffstat

1 file changed, 5 insertions, 5 deletions

Status File Name N° Changes Insertions Deletions
Modified spec.txt 10 5 5
diff --git a/spec.txt b/spec.txt
@@ -241,15 +241,15 @@ or more [unicode whitespace characters](#unicode-whitespace-character).
 
 A [non-space character](@non-space-character) is anything but `U+0020`.
 
-A [punctuation character](@punctuation-character) is anything in
-the unicode classes `Pc`, `Pd`, `Pe`,` `Pf`, `Pi`, `Po`, or `Ps`.
-
 An [ASCII punctuation character](@ascii-punctuation-character)
-is a [punctuation character](#punctuation-character) in the
-ASCII class: that is, `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
+is `!`, `"`, `#`, `$`, `%`, `&`, `'`, `(`, `)`,
 `*`, `+`, `,`, `-`, `.`, `/`, `:`, `;`, `<`, `=`, `>`, `?`, `@`,
 `[`, `\`, `]`, `^`, `_`, `` ` ``, `{`, `|`, `}`, or `~`.
 
+A [punctuation character](@punctuation-character) is an [ASCII
+punctuation character](#ascii-punctuation-character) or anything in
+the unicode classes `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
+
 ## Tab expansion
 
 Tabs in lines are expanded to spaces, with a tab stop of 4 characters: