.editorconfig 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # EditorConfig for GLFW and its internal dependencies
  2. #
  3. # All files created by GLFW should indent with four spaces unless their format requires
  4. # otherwise. A few files still use other indent styles for historical reasons.
  5. #
  6. # Dependencies have (what seemed to be) their existing styles described. Those with
  7. # existing trailing whitespace have it preserved to avoid cluttering future commits.
  8. root = true
  9. [*]
  10. charset = utf-8
  11. end_of_line = lf
  12. [include/GLFW/*.h]
  13. indent_style = space
  14. indent_size = 4
  15. [{src,examples,tests}/*.{c,m,h,rc,in}]
  16. indent_style = space
  17. indent_size = 4
  18. [CMakeLists.txt]
  19. indent_style = space
  20. indent_size = 4
  21. [CMake/**.{cmake,in}]
  22. indent_style = space
  23. indent_size = 4
  24. [*.{md}]
  25. indent_style = space
  26. indent_size = 4
  27. trim_trailing_whitespace = false
  28. [DoxygenLayout.xml]
  29. indent_style = space
  30. indent_size = 2
  31. [docs/*.{scss,html}]
  32. indent_style = tab
  33. indent_size = unset
  34. [deps/getopt.{c,h}]
  35. indent_style = space
  36. indent_size = 2
  37. [deps/linmath.h]
  38. indent_style = tab
  39. tab_width = 4
  40. indent_size = 4
  41. trim_trailing_whitespace = false
  42. [deps/nuklear*.h]
  43. indent_style = space
  44. indent_size = 4
  45. [deps/tinycthread.{c,h}]
  46. indent_style = space
  47. indent_size = 2