Joel Challis 3 месяцев назад
Родитель
Сommit
92c0e2cee1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/python/qmk/c_parse.py

+ 2 - 2
lib/python/qmk/c_parse.py

@@ -45,7 +45,7 @@ def strip_multiline_comment(string):
 
 
 def c_source_files(dir_names):
-    """Returns a list of all *.c, *.h, and *.cpp files for a given list of directories
+    """Returns a list of all *.c, *.h, *.cpp, and *.hpp files for a given list of directories
 
     Args:
 
@@ -54,7 +54,7 @@ def c_source_files(dir_names):
     """
     files = []
     for dir in dir_names:
-        files.extend(file for file in Path(dir).glob('**/*') if file.suffix in ['.c', '.h', '.cpp'])
+        files.extend(file for file in Path(dir).glob('**/*') if file.suffix in ['.c', '.h', '.cpp', '.hpp'])
     return files