aboutsummaryrefslogtreecommitdiff
path: root/lib/mstch/src/state/in_section.hpp
blob: 14ca2f7791fbf99751739fd14132b6f1a1fd14da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <sstream>
#include <vector>

#include "render_state.hpp"
#include "template_type.hpp"

namespace mstch {

class in_section: public render_state {
 public:
  enum class type { inverted, normal };
  in_section(type type, const token& start_token);
  std::string render(render_context& context, const token& token) override;

 private:
  const type m_type;
  const token& m_start_token;
  template_type m_section;
  int m_skipped_openings;
};

}