Introduce .editorconfig
[mesa.git] / .editorconfig
1 # To use this config on you editor, follow the instructions at:
2 # http://editorconfig.org
3
4 root = true
5
6 [*]
7 charset = utf-8
8 insert_final_newline = true
9
10 [*.{c,h,cpp,hpp,cc,hh}]
11 indent_style = space
12 indent_size = 3
13
14 [{Makefile*,*.mk}]
15 indent_style = tab
16
17 [{*.py,SCons*}]
18 indent_style = space
19 indent_size = 4
20
21 [*.pl]
22 indent_style = space
23 indent_size = 4
24
25 [*.m4]
26 indent_style = space
27 indent_size = 2
28
29 [*.yml]
30 indent_style = space
31 indent_size = 2
32
33 [*.patch]
34 trim_trailing_whitespace = false