Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86662 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2013-11-12 15:33:10


Author: danieljames
Date: 2013-11-12 15:33:10 EST (Tue, 12 Nov 2013)
New Revision: 86662
URL: http://svn.boost.org/trac/boost/changeset/86662

Log:
Create header for syntax highlighting stuff.

Added:
   trunk/tools/quickbook/src/syntax_highlight.hpp (contents, props changed)
Text files modified:
   trunk/tools/quickbook/src/actions.cpp | 1 +
   trunk/tools/quickbook/src/actions.hpp | 6 ------
   trunk/tools/quickbook/src/syntax_highlight.cpp | 1 +
   trunk/tools/quickbook/src/syntax_highlight.hpp | 23 +++++++++++++++++++++++
   4 files changed, 25 insertions(+), 6 deletions(-)

Modified: trunk/tools/quickbook/src/actions.cpp
==============================================================================
--- trunk/tools/quickbook/src/actions.cpp Tue Nov 12 15:32:47 2013 (r86661)
+++ trunk/tools/quickbook/src/actions.cpp 2013-11-12 15:33:10 EST (Tue, 12 Nov 2013) (r86662)
@@ -23,6 +23,7 @@
 #include <boost/foreach.hpp>
 #include "quickbook.hpp"
 #include "actions.hpp"
+#include "syntax_highlight.hpp"
 #include "utils.hpp"
 #include "files.hpp"
 #include "markups.hpp"

Modified: trunk/tools/quickbook/src/actions.hpp
==============================================================================
--- trunk/tools/quickbook/src/actions.hpp Tue Nov 12 15:32:47 2013 (r86661)
+++ trunk/tools/quickbook/src/actions.hpp 2013-11-12 15:33:10 EST (Tue, 12 Nov 2013) (r86662)
@@ -46,12 +46,6 @@
     int load_snippets(fs::path const& file, std::vector<template_symbol>& storage,
         std::string const& extension, value::tag_type load_type);
 
- void syntax_highlight(
- parse_iterator first, parse_iterator last,
- quickbook::state& state,
- source_mode_type source_mode,
- bool is_block);
-
     struct xinclude_path {
         xinclude_path(fs::path const& path, std::string const& uri) :
             path(path), uri(uri) {}

Modified: trunk/tools/quickbook/src/syntax_highlight.cpp
==============================================================================
--- trunk/tools/quickbook/src/syntax_highlight.cpp Tue Nov 12 15:32:47 2013 (r86661)
+++ trunk/tools/quickbook/src/syntax_highlight.cpp 2013-11-12 15:33:10 EST (Tue, 12 Nov 2013) (r86662)
@@ -15,6 +15,7 @@
 #include "grammar.hpp"
 #include "state.hpp"
 #include "actions.hpp"
+#include "syntax_highlight.hpp"
 #include "utils.hpp"
 #include "files.hpp"
 #include "native_text.hpp"

Added: trunk/tools/quickbook/src/syntax_highlight.hpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/tools/quickbook/src/syntax_highlight.hpp 2013-11-12 15:33:10 EST (Tue, 12 Nov 2013) (r86662)
@@ -0,0 +1,23 @@
+/*=============================================================================
+ Copyright (c) 2011,2013 Daniel James
+
+ 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_QUICKBOOK_SYNTAX_HIGHLIGHT_HPP)
+#define BOOST_QUICKBOOK_SYNTAX_HIGHLIGHT_HPP
+
+#include "fwd.hpp"
+
+namespace quickbook
+{
+ void syntax_highlight(
+ parse_iterator first, parse_iterator last,
+ quickbook::state& state,
+ source_mode_type source_mode,
+ bool is_block);
+}
+
+#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk