diff options
Diffstat (limited to 'src/contrib/SDL-2.30.2/.editorconfig')
-rw-r--r-- | src/contrib/SDL-2.30.2/.editorconfig | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.editorconfig b/src/contrib/SDL-2.30.2/.editorconfig new file mode 100644 index 0000000..cdd3c4e --- /dev/null +++ b/src/contrib/SDL-2.30.2/.editorconfig | |||
@@ -0,0 +1,79 @@ | |||
1 | # For format see editorconfig.org | ||
2 | # Copyright 2022 Collabora Ltd. | ||
3 | # SPDX-License-Identifier: Zlib | ||
4 | |||
5 | root = true | ||
6 | |||
7 | [*.{c,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}] | ||
8 | indent_size = 4 | ||
9 | indent_style = space | ||
10 | insert_final_newline = true | ||
11 | trim_trailing_whitespace = true | ||
12 | |||
13 | [*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}] | ||
14 | indent_size = 2 | ||
15 | indent_style = space | ||
16 | |||
17 | [*.xml] | ||
18 | indent_size = 4 | ||
19 | indent_style = space | ||
20 | |||
21 | [{CMakeLists.txt,sdl2-config*.cmake.in,cmake/*.cmake}] | ||
22 | indent_size = 2 | ||
23 | indent_style = space | ||
24 | |||
25 | [{cmake_uninstall.cmake.in,test/CMakeLists.txt}] | ||
26 | indent_size = 4 | ||
27 | indent_style = space | ||
28 | |||
29 | [configure.ac] | ||
30 | # Inconsistently 2-, 4- or occasionally 3-space indented, but mostly 4, | ||
31 | # so let's use 4 for new code | ||
32 | indent_size = 4 | ||
33 | indent_style = space | ||
34 | |||
35 | [{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}] | ||
36 | indent_size = 8 | ||
37 | indent_style = tab | ||
38 | tab_width = 8 | ||
39 | |||
40 | [Makefile.os2] | ||
41 | indent_size = 4 | ||
42 | indent_style = space | ||
43 | |||
44 | [test/Makefile.os2] | ||
45 | indent_size = 2 | ||
46 | indent_style = space | ||
47 | |||
48 | [{src/core/os2/geniconv/makefile,src/core/os2/geniconv/os2cp.c}] | ||
49 | indent_size = 2 | ||
50 | indent_style = space | ||
51 | |||
52 | [src/joystick/controller_type.*] | ||
53 | indent_style = tab | ||
54 | |||
55 | [src/joystick/hidapi/steam/*.h] | ||
56 | indent_style = tab | ||
57 | |||
58 | [src/libm/*.c] | ||
59 | indent_style = tab | ||
60 | |||
61 | [src/test/SDL_test_{crc32,md5,random}.c] | ||
62 | indent_size = 2 | ||
63 | indent_style = space | ||
64 | |||
65 | [src/video/yuv2rgb/*.{c,h}] | ||
66 | indent_style = tab | ||
67 | |||
68 | [wayland-protocols/*.xml] | ||
69 | indent_size = 2 | ||
70 | indent_style = space | ||
71 | |||
72 | [*.{markdown,md}] | ||
73 | indent_size = 4 | ||
74 | indent_style = space | ||
75 | # Markdown syntax treats tabs as 4 spaces | ||
76 | tab_width = 4 | ||
77 | |||
78 | [{*.bat,*.rc}] | ||
79 | end_of_line = crlf | ||