diff options
author | Li Jin <dragon-fly@qq.com> | 2021-02-10 20:45:46 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-02-10 20:50:54 +0800 |
commit | 90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f (patch) | |
tree | 3b3dd29a627dc16448d6fa628559f65bcd405dac /src/MoonP/moon_parser.h | |
parent | c68e11bc6d7631185749aaf0c8d89147b3ac9cc9 (diff) | |
download | yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.tar.gz yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.tar.bz2 yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.zip |
fix issue #38 with a better solution.
Diffstat (limited to '')
-rw-r--r-- | src/MoonP/moon_parser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MoonP/moon_parser.h b/src/MoonP/moon_parser.h index bee3c9c..66f2cd9 100644 --- a/src/MoonP/moon_parser.h +++ b/src/MoonP/moon_parser.h | |||
@@ -78,6 +78,7 @@ protected: | |||
78 | std::string buffer; | 78 | std::string buffer; |
79 | std::stack<int> indents; | 79 | std::stack<int> indents; |
80 | std::stack<bool> doStack; | 80 | std::stack<bool> doStack; |
81 | std::stack<bool> chainBlockStack; | ||
81 | }; | 82 | }; |
82 | 83 | ||
83 | template <class T> | 84 | template <class T> |
@@ -155,6 +156,10 @@ private: | |||
155 | rule ColonChain; | 156 | rule ColonChain; |
156 | rule chain_with_colon; | 157 | rule chain_with_colon; |
157 | rule ChainItem; | 158 | rule ChainItem; |
159 | rule chain_line; | ||
160 | rule chain_block; | ||
161 | rule DisableChainBlock; | ||
162 | rule PopChainBlock; | ||
158 | rule Index; | 163 | rule Index; |
159 | rule invoke_chain; | 164 | rule invoke_chain; |
160 | rule TableValue; | 165 | rule TableValue; |