.editorconfig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # For format see editorconfig.org
  2. # Copyright 2022 Collabora Ltd.
  3. # SPDX-License-Identifier: Zlib
  4. root = true
  5. [*.{c,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
  6. indent_size = 4
  7. indent_style = space
  8. [*.{html,js,json,m4,yml,yaml,vcxproj,vcxproj.filters}]
  9. indent_size = 2
  10. indent_style = space
  11. [*.xml]
  12. indent_size = 4
  13. indent_style = space
  14. [{CMakeLists.txt,sdl2-config*.cmake.in,cmake/*.cmake}]
  15. indent_size = 2
  16. indent_style = space
  17. [{cmake_uninstall.cmake.in,test/CMakeLists.txt}]
  18. indent_size = 4
  19. indent_style = space
  20. [configure.ac]
  21. # Inconsistently 2-, 4- or occasionally 3-space indented, but mostly 4,
  22. # so let's use 4 for new code
  23. indent_size = 4
  24. indent_style = space
  25. [{Makefile.*,*.mk,*.sln,*.pbxproj,*.plist}]
  26. indent_size = 8
  27. indent_style = tab
  28. tab_width = 8
  29. [Makefile.os2]
  30. indent_size = 4
  31. indent_style = space
  32. [test/Makefile.os2]
  33. indent_size = 2
  34. indent_style = space
  35. [{src/core/os2/geniconv/makefile,src/core/os2/geniconv/os2cp.c}]
  36. indent_size = 2
  37. indent_style = space
  38. [src/joystick/controller_type.*]
  39. indent_style = tab
  40. [src/joystick/hidapi/steam/*.h]
  41. indent_style = tab
  42. [src/libm/*.c]
  43. indent_style = tab
  44. [src/test/SDL_test_{crc32,md5,random}.c]
  45. indent_size = 2
  46. indent_style = space
  47. [src/video/yuv2rgb/*.{c,h}]
  48. indent_style = tab
  49. [wayland-protocols/*.xml]
  50. indent_size = 2
  51. indent_style = space
  52. [*.{markdown,md}]
  53. indent_size = 4
  54. indent_style = space
  55. # Markdown syntax treats tabs as 4 spaces
  56. tab_width = 4
  57. [{*.bat,*.rc}]
  58. end_of_line = crlf