aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_auto_indent.h
blob: 5c4ef97afb5afe4af69794d29287fcf56985501e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
4coder_auto_indent.h - Auto-indentation types.
*/

// TOP

#if !defined(FCODER_AUTO_INDENT_H)
#define FCODER_AUTO_INDENT_H

typedef u32 Indent_Flag;
enum{
 Indent_ClearLine = 0x1,
 Indent_UseTab    = 0x2,
 Indent_FullTokens = 0x4,
 };

 struct Nest{
 Nest *next;
 Token_Base_Kind kind;
 i64 indent;
 };

 struct Nest_Alloc{
 Nest *free_nest;
 };

 struct Indent_Line_Cache{
 i64 where_token_starts;
 i64 line_number_for_cached_indent;
 i64 start_pos;
 i64 one_past_last_pos;
 Indent_Info indent_info;
};

#endif

// BOTTOM