From 0e941c90fbce05fe0cf4dabaa3daa733cf340810 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Wed, 28 Jul 2021 23:29:46 +0200 Subject: [PATCH] Added skip inline command --- src/uml/command_parser.cc | 10 ++++++++++ src/uml/command_parser.h | 4 ++++ tests/test_command_parser.cc | 17 +++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/src/uml/command_parser.cc b/src/uml/command_parser.cc index f6b945c6..50a464e4 100644 --- a/src/uml/command_parser.cc +++ b/src/uml/command_parser.cc @@ -30,6 +30,9 @@ std::shared_ptr command::from_string(std::string_view c) if (c.find("note") == 0) { return note::from_string(c); } + else if (c.find("skip") == 0) { + return skip::from_string(c); + } else if (c.find("style") == 0) { return style::from_string(c); } @@ -66,6 +69,13 @@ std::shared_ptr note::from_string(std::string_view c) return res; } +std::shared_ptr skip::from_string(std::string_view c) +{ + auto res = std::make_shared(); + return res; +} + + std::shared_ptr style::from_string(std::string_view c) { auto res = std::make_shared