summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.editorconfig
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/.editorconfig
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/.editorconfig')
-rw-r--r--src/contrib/SDL-2.30.2/.editorconfig79
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
5root = true
6
7[*.{c,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
8indent_size = 4
9indent_style = space
10insert_final_newline = true
11trim_trailing_whitespace = true
12
13[*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}]
14indent_size = 2
15indent_style = space
16
17[*.xml]
18indent_size = 4
19indent_style = space
20
21[{CMakeLists.txt,sdl2-config*.cmake.in,cmake/*.cmake}]
22indent_size = 2
23indent_style = space
24
25[{cmake_uninstall.cmake.in,test/CMakeLists.txt}]
26indent_size = 4
27indent_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
32indent_size = 4
33indent_style = space
34
35[{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
36indent_size = 8
37indent_style = tab
38tab_width = 8
39
40[Makefile.os2]
41indent_size = 4
42indent_style = space
43
44[test/Makefile.os2]
45indent_size = 2
46indent_style = space
47
48[{src/core/os2/geniconv/makefile,src/core/os2/geniconv/os2cp.c}]
49indent_size = 2
50indent_style = space
51
52[src/joystick/controller_type.*]
53indent_style = tab
54
55[src/joystick/hidapi/steam/*.h]
56indent_style = tab
57
58[src/libm/*.c]
59indent_style = tab
60
61[src/test/SDL_test_{crc32,md5,random}.c]
62indent_size = 2
63indent_style = space
64
65[src/video/yuv2rgb/*.{c,h}]
66indent_style = tab
67
68[wayland-protocols/*.xml]
69indent_size = 2
70indent_style = space
71
72[*.{markdown,md}]
73indent_size = 4
74indent_style = space
75# Markdown syntax treats tabs as 4 spaces
76tab_width = 4
77
78[{*.bat,*.rc}]
79end_of_line = crlf