MCPcopy Create free account
hub / github.com/antirez/ds4 / agent_tool_viz_code_end

Function agent_tool_viz_code_end

ds4_agent.c:2924–2931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2922 return &agent_syntaxes[0];
2923}
2924
2925static const agent_syntax *agent_syntax_for_path(const char *path) {
2926 if (!path || !path[0]) return agent_syntax_for_lang(NULL);
2927 const char *base = strrchr(path, '/');
2928 base = base ? base + 1 : path;
2929 if (!strcasecmp(base, "Dockerfile")) return agent_syntax_for_lang("sh");
2930 if (!strcasecmp(base, "Makefile") || !strcasecmp(base, "makefile"))
2931 return agent_syntax_for_lang("sh");
2932 const char *dot = strrchr(base, '.');
2933 if (!dot || !dot[1]) return agent_syntax_for_lang(NULL);
2934 return agent_syntax_for_lang(dot + 1);

Callers 1

agent_tool_viz_param_endFunction · 0.85

Calls 1

renderer_code_endFunction · 0.85

Tested by

no test coverage detected