SDL
/
.editorconfig
69 строк · 1.3 Кб
1# For format see editorconfig.org
2# Copyright 2022 Collabora Ltd.
3# SPDX-License-Identifier: Zlib
4
5root = true
6
7[*.{c,cc,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
16trim_tailing_whitespace = true
17
18[*.xml]
19indent_size = 4
20indent_style = space
21
22[{CMakeLists.txt,cmake/*.cmake}]
23indent_size = 2
24indent_style = space
25insert_final_newline = true
26trim_trailing_whitespace = true
27
28[{cmake/cmake_uninstall.cmake.in,test/CMakeLists.txt,cmake/SDL3Config.cmake.in}]
29indent_size = 4
30indent_style = space
31insert_final_newline = true
32trim_trailing_whitespace = true
33
34[{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
35indent_size = 8
36indent_style = tab
37tab_width = 8
38
39[src/joystick/controller_type.*]
40indent_style = tab
41
42[src/joystick/hidapi/steam/*.h]
43indent_style = tab
44
45[src/libm/*.c]
46indent_style = tab
47
48[src/test/SDL_test_{crc32,md5,random}.c]
49indent_size = 2
50indent_style = space
51
52[src/video/yuv2rgb/*.{c,h}]
53indent_style = tab
54
55[wayland-protocols/*.xml]
56indent_size = 2
57indent_style = space
58
59[*.{markdown,md}]
60indent_size = 4
61indent_style = space
62# Markdown syntax treats tabs as 4 spaces
63tab_width = 4
64
65[{*.bat,*.rc}]
66end_of_line = crlf
67
68[*.cocci]
69insert_final_newline = true
70