From 34c81f8e12769d7f8895133b9046909867acdf5b Mon Sep 17 00:00:00 2001
From: Marihachi <marihachi0620@gmail.com>
Date: Thu, 30 Jan 2020 23:16:03 +0900
Subject: [PATCH] add parts

---
 src/coreParser.pegjs | 38 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/src/coreParser.pegjs b/src/coreParser.pegjs
index 2cc84c2..a4330ea 100644
--- a/src/coreParser.pegjs
+++ b/src/coreParser.pegjs
@@ -1,4 +1,4 @@
-// start = syntax
+start = root
 
 // general
 
@@ -8,3 +8,39 @@ lineBreak
 	= "\n" / "\r\n" / "\r"
 spacing
 	= space / lineBreak
+
+// parts
+
+plain
+	= emoji
+	/ text
+
+block
+	= title
+	/ quote
+	/ search
+	/ blockCode
+	/ mathBlock
+	/ center
+
+inline
+	= big
+	/ bold
+	/ small
+	/ italic
+	/ strike
+	/ motion
+	/ spin
+	/ jump
+	/ flip
+	/ inlineCode
+	/ mathInline
+	/ mention
+	/ hashtag
+	/ url
+	/ link
+	/ plain
+
+root
+	= block
+	/ inline
-- 
GitLab