1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

pragma format disable/restore, better space handing in formatting

This commit is contained in:
Brian Fiete 2022-05-24 06:20:35 -07:00
parent f9396f69c0
commit dd6e7f0c2a
4 changed files with 128 additions and 46 deletions

View file

@ -66,6 +66,7 @@ public:
Array<StateModify> mChildNodeQueue;
int mFormatStart;
int mFormatEnd;
int mFormatDisableCount;
StateModify mNextStateModify;
String mOutString;
@ -98,6 +99,7 @@ public:
BfPrinter(BfRootNode* rootNode, BfRootNode* sidechannelRootNode, BfRootNode* errorRootNode);
public:
void Update(BfAstNode* bfAstNode);
bool CheckReplace(BfAstNode* astNode);
void FlushIndent();
void Write(const StringView& str);