better snippets, language management

This commit is contained in:
Barrett Ruth 2025-09-15 12:22:07 -04:00
parent 67406d2af0
commit 20b058f034
4 changed files with 26 additions and 108 deletions

View file

@ -8,14 +8,8 @@
local M = {}
local logger = require("cp.log")
local filetype_to_language = {
cpp = "cpp",
cxx = "cpp",
cc = "cpp",
c = "cpp",
py = "python",
py3 = "python",
}
local languages = require("cp.languages")
local filetype_to_language = languages.filetype_to_language
---@param source_file string
---@param contest_config table