From 81026a550e7df4c7384b6373d839f713dc9833c0 Mon Sep 17 00:00:00 2001
From: marihachi <marihachi0620@gmail.com>
Date: Mon, 24 Feb 2020 23:11:48 +0900
Subject: [PATCH] implement syntax: inlineCode

---
 src/parser/core-parser.pegjs | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/parser/core-parser.pegjs b/src/parser/core-parser.pegjs
index b22d832..b10e89f 100644
--- a/src/parser/core-parser.pegjs
+++ b/src/parser/core-parser.pegjs
@@ -37,7 +37,7 @@ inline
 	/ spin
 	/ jump
 	/ flip
-	// / inlineCode
+	/ inlineCode
 	// / mathInline
 	// / mention
 	// / hashtag
@@ -254,6 +254,17 @@ flip
 }
 
 
+// inline: inlineCode
+
+inlineCode
+	= "`" content:$(!"`" c:CHAR { return c; })+ "`"
+{
+	return createTree('inlineCode', {
+		code: content
+	});
+}
+
+
 // Core rules
 
 CHAR
-- 
GitLab