summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* Improve docs of language detection utilsA Farzat2026-06-211-3/+9
|
* Improve module/function docs in path_displayA Farzat2026-06-211-4/+7
|
* Extract paths_from_null_separated_bytes to utilsA Farzat2026-06-202-0/+53
|
* Add module/function docs to path_displayA Farzat2026-06-201-0/+7
|
* Add module/function docs to language utilsA Farzat2026-06-201-0/+10
|
* Add module/function docs to fence utilsA Farzat2026-06-201-2/+7
|
* Move outer_backticks to a util moduleA Farzat2026-06-102-0/+79
| | | | | | | | This is because it shall be used by other functions later on. It was made more generic by accepting raw bytes instead of strictly UTF-8 strings. This allows future functions to call it without having to convert the contents to UTF-8 strings first.
* Group similar languages together in testingA Farzat2026-06-091-14/+20
|
* Support YAML, JS, and TOMLA Farzat2026-06-081-0/+28
|
* Prioritize detection through extensionsA Farzat2026-06-071-0/+6
| | | | | | While shebangs take priority on Unix-like systems, the shebang detection here is very basic and not guaranteed to be correct, so its use should be secondary.
* Detect sh as bashA Farzat2026-06-071-1/+13
| | | | | | This is based on the assumption that LLMs recognize bash language fences more as they are trained more on them. Another assumption is that LLMs wouldn't care much about the difference unless instructed.
* Ensure shebangs properly start with #!A Farzat2026-06-071-1/+22
|
* Refactor language detection in a util moduleA Farzat2026-06-072-0/+34
|
* Move render_filename to utils as display_pathA Farzat2026-06-062-0/+10