mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-31 08:22:18 +00:00
31 lines
937 B
C++
31 lines
937 B
C++
/*=============================================================================
|
|
Copyright (c) 2002 2004 2006 Joel de Guzman
|
|
Copyright (c) 2004 Eric Niebler
|
|
http://spirit.sourceforge.net/
|
|
|
|
Use, modification and distribution is subject to the Boost Software
|
|
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================*/
|
|
#if !defined(BOOST_SPIRIT_QUICKBOOK_CODE_HPP)
|
|
#define BOOST_SPIRIT_QUICKBOOK_CODE_HPP
|
|
|
|
#include <string>
|
|
#include "fwd.hpp"
|
|
|
|
namespace quickbook
|
|
{
|
|
struct code {
|
|
enum flow_types { block, inline_block, inline_ };
|
|
flow_types flow;
|
|
file_position position;
|
|
std::string content;
|
|
};
|
|
|
|
std::string syntax_highlight(
|
|
iterator first, iterator last,
|
|
actions& escape_actions,
|
|
std::string& source_mode);
|
|
}
|
|
|
|
#endif |