filetypes.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # -*- coding:utf-8 -*-
  2. # Copyright (C) 2006 Libresoft
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU Library General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. #
  18. # Authors : Gregorio Robles <grex@gsyc.escet.urjc.es>
  19. # Authors : Germán Póo-Caamaño <gpoo@gnome.org>
  20. #
  21. # This QEMU version is a cut-down version of what originally shipped
  22. # in the gitdm sample-config directory.
  23. #
  24. # This file contains associations parameters regarding filetypes
  25. # (documentation, develompent, multimedia, images...)
  26. #
  27. # format:
  28. # filetype <type> <regex> [<comment>]
  29. #
  30. # Order:
  31. # The list should keep an order, so filetypes can be counted properly.
  32. # ie. we want ltmain.sh -> 'build' instead of 'code'.
  33. #
  34. # If there is an filetype which is not in order but has values, it will
  35. # be added at the end.
  36. #
  37. order build,interface,tests,code,documentation,devel-doc,blobs
  38. #
  39. #
  40. # Code files (headers and the like included
  41. # (most common languages first
  42. #
  43. filetype code \.c$ # C
  44. filetype code \.inc.c$ # C
  45. filetype code \.C$ # C++
  46. filetype code \.cpp$ # C++
  47. filetype code \.c\+\+$ # C++
  48. filetype code \.cxx$ # C++
  49. filetype code \.cc$ # C++
  50. filetype code \.h$ # C or C++ header
  51. filetype code \.hh$ # C++ header
  52. filetype code \.hpp$ # C++ header
  53. filetype code \.hxx$ # C++ header
  54. filetype code \.sh$ # Shell
  55. filetype code \.pl$ # Perl
  56. filetype code \.py$ # Python
  57. filetype code \.s$ # Assembly
  58. filetype code \.S$ # Assembly
  59. filetype code \.asm$ # Assembly
  60. filetype code \.awk$ # awk
  61. filetype code ^common$ # script fragements
  62. filetype code ^common.*$ # script fragements
  63. filetype code (qom|qmp)-\w+$ # python script fragments
  64. #
  65. # Interface/api files
  66. #
  67. filetype interface \.json$ # json
  68. filetype interface \.hx$ # documented options
  69. #
  70. # Test related blobs (unfortunately we can't filter out test code)
  71. #
  72. filetype tests \.hex$
  73. filetype tests \d{2,3}$ # test data 00-999
  74. filetype tests ^[A-Z]{4}$ # ACPI test data
  75. filetype tests ^[A-Z]{4}\.*$ # ACPI test data
  76. filetype tests \.out$
  77. filetype tests \.out\.nocache$
  78. filetype tests \.err$
  79. filetype tests \.exit$ # bad-if-FOO.exit etc
  80. filetype tests \.decode$
  81. filetype tests \.yml$ # travis/shippable config
  82. #
  83. # Development documentation files (for hacking generally)
  84. #
  85. filetype devel-doc ^readme.*$
  86. filetype devel-doc ^changelog.*
  87. filetype devel-doc ^hacking.*$
  88. filetype devel-doc ^licen(s|c)e.*$
  89. filetype devel-doc ^copying.*$
  90. filetype devel-doc ^MAINTAINERS$
  91. filetype devel-doc ^BSD-2-Clause$
  92. filetype devel-doc ^BSD-3-Clause$
  93. filetype devel-doc ^GPL-2.0$
  94. filetype devel-doc \.txt$
  95. filetype devel-doc \.rst$
  96. filetype devel-doc \.texi$
  97. filetype devel-doc \.pod$
  98. #
  99. # Building, compiling, and configuration admin files
  100. #
  101. filetype build configure.*$
  102. filetype build Makefile$
  103. filetype build Makefile\.*$
  104. filetype build config$
  105. filetype build conf$
  106. filetype build \.cfg$
  107. filetype build \.mk$
  108. filetype build \.mak$
  109. filetype build \.docker$
  110. filetype build \.pre$
  111. filetype build ^.gitignore$
  112. filetype build ^.gitmodules$
  113. filetype build ^.gitpublish$
  114. filetype build ^.mailmap$
  115. filetype build ^.dir-locals.el$
  116. filetype build ^.editorconfig$
  117. filetype build ^.exrc$
  118. filetype build ^.gdbinit$
  119. filetype build \.cocci$ # Coccinelle semantic patches
  120. #
  121. # Misc blobs
  122. #
  123. filetype blobs \.bin$
  124. filetype blobs \.dtb$
  125. filetype blobs \.dts$
  126. filetype blobs \.rom$
  127. filetype blobs \.img$
  128. filetype blobs \.ndrv$
  129. filetype blobs \.bmp$
  130. filetype blobs \.svg$
  131. filetype blobs ^pi_10.com$
  132. #
  133. # Documentation files
  134. #
  135. filetype documentation \.html$
  136. filetype documentation \.txt$
  137. filetype documentation \.texi$
  138. filetype documentation \.po$ # translation files