summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_code_indent.h
blob: 1cf889123b28e7cca78c62fbf659513d57cdb6f7 (plain)
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
#ifndef ELM_CODE_INDENT_H_
# define ELM_CODE_INDENT_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @file
 * @brief These routines are used for calculating text indentation of lines in Elm Code.
 */

/**
 * @brief Line indent handling functions.
 * @defgroup Indent management of indentation of lines
 *
 * @{
 *
 * Functions for calculation indentation of lines within elm code.
 *
 */

EAPI char *elm_code_line_indent_get(const char *prevtext, unsigned int prevlength);

EAPI char *elm_code_line_indent_matching_braces_get(Elm_Code_Line *line);

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* ELM_CODE_INDENT_H_ */