| 1 |
Fromscip-debian debian gemmi 0.7.5+ds-1 gemmi/patches/`tao-pegtl-3.patch`#From.: Andrius Merkys <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian gemmi 0.7.5+ds-1 gemmi/patches/`tao-pegtl-3.patch`#Date.: Fri, 3 Jan 2025 21:12:35 +0100 |
| 3 |
Subjectscip-debian debian gemmi 0.7.5+ds-1 gemmi/patches/`tao-pegtl-3.patch`#Subject.: Port to tao-pegtl v3. |
| 4 |
|
| 5 |
--- |
| 6 |
include/gemmi/cif.hpp | 11 +++++------ |
| 7 |
1 file changed, 5 insertions(+), 6 deletions(-) |
| 8 |
|
| 9 |
--- a/include/gemmi/cif.hppscip-debian debian gemmi 0.7.5+ds-1 gemmi/upstream/`include/gemmi/cif.hpp`: |
| 10 |
+++ b/include/gemmi/cif.hppscip-debian debian gemmi 0.7.5+ds-1 gemmi/upstream/`include/gemmi/cif.hpp`: |
| 11 |
@@ -35,7 +35,6 @@ |
| 12 |
namespace rules { |
| 13 |
|
| 14 |
template<int TableVal> struct lookup_char { |
| 15 |
|
| 16 |
template<typename Input> static bool match(Input& in) { |
| 17 |
if (!in.empty() && cif::char_table(in.peek_char()) == TableVal) { |
| 18 |
if (TableVal == 2) // this set includes new-line |
| 19 |
@@ -69,11 +68,11 @@ |
| 20 |
struct ws_or_eof : pegtl::sor<whitespace, pegtl::eof> {}; |
| 21 |
|
| 22 |
// (b) Reserved words. |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
+ struct str_data : TAO_PEGTL_ISTRING("data_") {}; |
| 29 |
+ struct str_loop : pegtl::seq<TAO_PEGTL_ISTRING("loop_"), pegtl::at<ws_or_eof>> {}; |
| 30 |
+ struct str_global : pegtl::seq<TAO_PEGTL_ISTRING("global_"), pegtl::at<ws_or_eof>> {}; |
| 31 |
+ struct str_save : TAO_PEGTL_ISTRING("save_") {}; |
| 32 |
+ struct str_stop : pegtl::seq<TAO_PEGTL_ISTRING("stop_"), pegtl::at<ws_or_eof>> {}; |
| 33 |
struct keyword : pegtl::sor<str_data, str_loop, str_global, |
| 34 |
str_save, str_stop> {}; |
| 35 |
|