blob: 22681d91c6ff3c6256b04e7b064da6c5510f8de2 [file] [log] [blame]
Marc-André Lureau1ad723e2018-08-21 12:35:28 +02001# EditorConfig is a file format and collection of text editor plugins
2# for maintaining consistent coding styles between different editors
3# and IDEs. Most popular editors support this either natively or via
4# plugin.
5#
6# Check https://editorconfig.org for details.
7
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +02008root = true
9
10[*]
11end_of_line = lf
12insert_final_newline = true
13charset = utf-8
14
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020015[*.mak]
16indent_style = tab
17indent_size = 8
18file_type_emacs = makefile
19
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020020[Makefile*]
21indent_style = tab
22indent_size = 8
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020023file_type_emacs = makefile
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020024
Paolo Bonzini139c1832020-02-04 12:41:01 +010025[*.{c,h,c.inc,h.inc}]
Gerd Hoffmanna62e20f2017-07-17 12:15:47 +020026indent_style = space
27indent_size = 4
Paolo Bonzini139c1832020-02-04 12:41:01 +010028file_type_emacs = c
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020029
Alex Bennée9b109f52019-05-30 10:40:28 +010030[*.sh]
31indent_style = space
32indent_size = 4
33
Alex Bennée9699e5f2019-05-08 14:42:51 +010034[*.{s,S}]
35indent_style = tab
36indent_size = 8
37file_type_emacs = asm
38
Marc-André Lureau1ad723e2018-08-21 12:35:28 +020039[*.{vert,frag}]
40file_type_emacs = glsl
41
42[*.json]
43indent_style = space
44file_type_emacs = python