mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
This function can generate a HTML report on latest compatible grammar versions for each major mode. * admin/tree-sitter/compat-template.html: Update. * admin/tree-sitter/treesit-admin.el: (treesit-admin--validate-mode-lang): Change so that emacs 30 can also run it. (treesit-admin--find-latest-compatible-revision): Support running checks with a different Emacs executable. (treesit-admin--generate-compatibility-report): New function.
45 lines
1.2 KiB
HTML
45 lines
1.2 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;
|
|
font-family: ui-serif;
|
|
}
|
|
thead {
|
|
font-weight: bold;
|
|
}
|
|
table {
|
|
margin: auto;
|
|
}
|
|
table td {
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
.head {
|
|
background: lightgreen;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Tree-sitter grammar compatibility for Emacs ___REPLACE_EMACS_VERSION___</h1>
|
|
<p>This is an auto-generated report of the latest compatible versions of tree-sitter grammars for each major mode. A <span class="head">green background</span> on the version indicates that the major mode is compatible with the latest commit in the upstream grammar repo.</p>
|
|
<p>This report is generated on ___REPLACE_TIME___.</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>Major mode</td>
|
|
<td>Language</td>
|
|
<td>Latest compatible version</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
___REPLACE_TABLE___
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|