2022-05-18 20:42:48 +08:00
|
|
|
# For format see editorconfig.org
|
|
|
|
# Copyright 2022 Collabora Ltd.
|
|
|
|
# SPDX-License-Identifier: Zlib
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
|
|
|
[*.{c,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}]
|
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[*.xml]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
|
2022-11-28 05:19:44 +08:00
|
|
|
[{CMakeLists.txt,cmake/*.cmake}]
|
2022-05-18 20:42:48 +08:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
2022-12-17 06:47:28 +08:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 20:42:48 +08:00
|
|
|
|
2022-12-18 09:24:42 +08:00
|
|
|
[{cmake/cmake_uninstall.cmake.in,test/CMakeLists.txt,cmake/SDL3Config.cmake.in}]
|
2022-05-18 20:42:48 +08:00
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
2022-12-17 06:47:28 +08:00
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
2022-05-18 20:42:48 +08:00
|
|
|
|
|
|
|
[{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
|
|
|
|
indent_size = 8
|
|
|
|
indent_style = tab
|
|
|
|
tab_width = 8
|
|
|
|
|
2022-06-04 06:02:31 +08:00
|
|
|
[src/joystick/controller_type.*]
|
2022-05-18 20:42:48 +08:00
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/joystick/hidapi/steam/*.h]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/libm/*.c]
|
|
|
|
indent_style = tab
|
|
|
|
|
|
|
|
[src/test/SDL_test_{crc32,md5,random}.c]
|
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[src/video/yuv2rgb/*.{c,h}]
|
|
|
|
indent_style = tab
|
|
|
|
|
2022-08-23 19:53:43 +08:00
|
|
|
[wayland-protocols/*.xml]
|
2022-05-18 20:42:48 +08:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
|
|
|
|
[*.{markdown,md}]
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
# Markdown syntax treats tabs as 4 spaces
|
|
|
|
tab_width = 4
|
|
|
|
|
|
|
|
[{*.bat,*.rc}]
|
|
|
|
end_of_line = crlf
|