1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/admin/tree-sitter/compat-template.html
Yuan Fu 0b1986ba52
Generate compatibility report for multiple Emacs versions
* admin/tree-sitter/compat-template.html: Update template.
* admin/tree-sitter/treesit-admin.el:
(treesit-admin--builtin-language-sources): Add sources.
(treesit-admin--builtin-modes): New variable.
(treesit-admin--verify-major-mode-queries): Don't need to pass
LANGS argument anymore.
(treesit-admin-verify-major-mode-queries): Move, and use
treesit-admin--builtin-modes.
(treesit-admin--mode-languages): Set some variables so it gets
all the languages.
(treesit-admin--find-latest-compatible-revision): Also return
commit timestamp.
(treesit-admin--generate-compatibility-report): New parameter
EMACS-EXECUTABLES.  Support generating report for multiple Emacs
versions.
* lisp/treesit.el (treesit--language-git-timestamp): New function.
2024-12-30 00:20:55 -08:00

39 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Emacs tree-sitter grammar version compatibility report</title>
<style>
body {
width: min(90vw, 40rem);
margin: auto;
margin-top: 2rem;
margin-bottom: 2rem;
font-family: ui-serif;
}
thead {
font-weight: bold;
}
table {
margin: auto;
}
table td {
padding: 0.5rem 1rem;
width: 10rem;
word-break: break-all;
}
.head {
background: lightgreen;
}
</style>
</head>
<body>
<h1>Emacs tree-sitter grammar compatibility</h1>
<p>This is an auto-generated report of the last compatible version for each grammar in each Emacs version. A <span class="head">green background</span> on the version indicates that the Emacs version is compatible with the latest commit in the upstream grammar repo.</p>
<p>This report is generated on ___REPLACE_TIME___.</p>
<table>
___REPLACE_TABLE___
</table>
</body>
</html>