Tree Sitter: Add update-language-info script and resulting data.
Review Request #14514 — Created July 26, 2025 and updated
This change adds a script that loads information about supported
languages from a tree-sitter-language-pack checkout. This creates a
file,reviewboard/treesitter/_languages.py, which has two mappings,
MIME_TYPE_TO_LANGUAGEandFILE_SUFFIX_TO_LANGUAGES, which are used
for determining the tree sitter language name to use for a given file.The compiled grammars that are shipped in tree-sitter-language-pack
don't include any of the grammar metadata, so this script will go into a
a checkout and grab the filename suffixes. This also fetches the
"first_line_regex" key, although that is not currently used for
detection.
Ran script to create the _languages.py file.
| Summary | ID |
|---|---|
| d79179711d6e9d6845a3bbf7b28b15c7e5b2ef56 |
| Description | From | Last Updated |
|---|---|---|
|
continuation line over-indented for visual indent Column: 10 Error code: E127 |
|
|
|
continuation line under-indented for visual indent Column: 33 Error code: E128 |
|
|
|
line too long (83 > 79 characters) Column: 80 Error code: E501 |
|
|
|
line too long (83 > 79 characters) Column: 80 Error code: E501 |
|