2018-05-09 07:10:07 +00:00
|
|
|
/*
|
|
|
|
4coder_auto_indent.h - Auto-indentation types.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FCODER_AUTO_INDENT_H)
|
|
|
|
#define FCODER_AUTO_INDENT_H
|
|
|
|
|
2019-10-03 20:54:13 +00:00
|
|
|
typedef u32 Indent_Flag;
|
|
|
|
enum{
|
|
|
|
Indent_ClearLine = 0x1,
|
|
|
|
Indent_UseTab = 0x2,
|
2019-10-10 18:21:47 +00:00
|
|
|
Indent_FullTokens = 0x4,
|
2018-05-09 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
2019-10-03 20:54:13 +00:00
|
|
|
struct Nest{
|
|
|
|
Nest *next;
|
|
|
|
Token_Base_Kind kind;
|
|
|
|
i64 indent;
|
2018-05-09 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
2019-10-03 20:54:13 +00:00
|
|
|
struct Nest_Alloc{
|
|
|
|
Nest *free_nest;
|
2018-05-09 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|