Skip to content

Commit 80c17a0

Browse files
authored
feat(parse): add support for .inl file extension (#1176)
Add .inl to CODE_EXTENSIONS and include test case for directory scanning
1 parent 02d7106 commit 80c17a0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

openviking/parse/parsers/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
".c",
102102
".h",
103103
".hpp",
104+
".inl",
104105
".cs",
105106
".js",
106107
".ts",

tests/parse/test_directory_scan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def tmp_tree(tmp_path: Path) -> Path:
3636
# text (code/config, no dedicated parser or text parser only): .py, .yaml
3737
(tmp_path / "main.py").write_text("print(1)", encoding="utf-8")
3838
(tmp_path / "engine.cc").write_text("int main() { return 0; }", encoding="utf-8")
39+
(tmp_path / "inline.inl").write_text("inline impl", encoding="utf-8")
3940
(tmp_path / "config.yaml").write_text("key: value", encoding="utf-8")
4041

4142
# unsupported: unknown extension
@@ -138,6 +139,7 @@ def test_processable_includes_code_or_config(
138139
processable_rel = [f.rel_path for f in result.processable]
139140
assert "main.py" in processable_rel
140141
assert "engine.cc" in processable_rel
142+
assert "inline.inl" in processable_rel
141143
assert "config.yaml" in processable_rel
142144
assert "src/app.py" in processable_rel
143145

0 commit comments

Comments
 (0)