Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cyan/graph.tl
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ function graph.scan_directory(source_dir: lexical_path.Path, include?: {string |

local cwd <const> = fs.current_directory()
for p in fs.scan_directory(source_dir, include, exclude) do
local ext <const> = p:extension(2):lower()
if ext == "tl" or ext == "lua" then
local ext <const> = p:extension():lower()
if (ext == "tl" or ext == "lua") and name:sub(-2) ~= ".d" then
unchecked_insert(d, p, abs_src, cwd)
end
end
Expand Down