Skip to content

docs/code-nav: Add a language support table - #2143

Open
marcleblanc2 wants to merge 7 commits into
mainfrom
marc/language-support-table
Open

marcleblanc2 wants to merge 7 commits into
mainfrom
marc/language-support-table

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

There was no single place to see which languages Sourcegraph supports, and for which features. The lists that did exist were scattered across pages and stale: the search-based list named 40 languages while the code has 47, the syntactic list was missing C and TypeScript, and the auto-indexing list was missing Rust and .NET. Syntax highlighting and symbol search had no list at all.

This adds a Language support page under Code Navigation, with one row per language and a checkmark column for each feature: syntax highlighting, symbol search, search-based navigation, syntactic navigation, precise navigation, and auto-indexing. The 15 languages with precise navigation come first, under "Languages with full support", so readers don't have to scroll past ActionScript to find Go or TypeScript. The other 114 follow under "Languages with partial support", with only the three columns that apply to them. A last, smaller table lists formats that are only highlighted with another language's grammar, such as SVG as XML, so they don't pad the language tables.

The existing lists on the Code Navigation overview, syntactic navigation, auto-indexing, and GitHub comparison pages now link to the new page, so each fact has one home. The precise indexer table stays where it is, because it carries indexer and build-tool details the new table doesn't.

Where each column comes from

The tables are built from the sourcegraph/sourcegraph sources, not from the old docs:

Column Source
Syntax highlighting Tree-sitter and Syntect language maps in internal/gosyntect/languages.go, for every language name in go-enry (linguist)
Symbol search SupportedLanguages and the extension maps in sourcegraph/go-ctags, plus the scip-ctags defaults (Hack, Magik, Zig)
Search-based navigation client/shared/src/codeintel/language-specs
Syntactic navigation SUPPORTED_LANGUAGES in scip-syntax
Precise navigation The indexer table
Auto-indexing Inference recipes in internal/codeintel/autoindexing/internal/inference/lua

Scala has no auto-indexing checkmark, even though 8.1 still infers Scala projects: inference on main no longer covers Scala, because scip-java 0.13 dropped Scala support. Scala keeps its precise navigation checkmark, because earlier scip-java releases still index it. The page says so under the full support table, and Scala now has its own row in the indexer table on the precise navigation page, pointing at scip-java releases before 0.13.

The indexer table and the manual indexing list above it also linked to indexer repositories that sourcegraph.com no longer serves. Those links now point at the repositories on GitHub.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Nov 11, 2026 3:17am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor
Page Before After Diff
/code-navigation/auto-indexing prod preview −3 +1
/code-navigation prod preview −1 +1
/code-navigation/language-support 🆕 — preview +181
/code-navigation/precise-code-navigation prod preview −9 +12
/code-navigation/syntactic-code-navigation prod preview −10 +1
/getting-started/github-vs-sourcegraph prod preview −2 +2

@github-actions

This comment has been minimized.

@marcleblanc2

Copy link
Copy Markdown
Contributor Author

/spell gosyntect

marcleblanc2 and others added 4 commits November 10, 2026 20:38
There was no single place to see which languages Sourcegraph supports, and for which features. The lists that did exist were scattered across pages and stale: the search-based list named 40 languages while the code has 47, the syntactic list was missing C and TypeScript, and the auto-indexing list was missing Rust and .NET. Syntax highlighting and symbol search had no list at all.

This adds a [Language support](https://github.com/sourcegraph/docs/blob/marc/language-support-table/docs/code-navigation/language-support.mdx) page under Code Navigation, with one row per language and a checkmark column for each feature: syntax highlighting, symbol search, search-based navigation, syntactic navigation, precise navigation, and auto-indexing. A second, smaller table lists formats that are only highlighted with another language's grammar, such as SVG as XML, so they don't pad the main table.

The existing lists on the Code Navigation overview, syntactic navigation, auto-indexing, and GitHub comparison pages now link to the new page, so each fact has one home. The precise indexer table stays where it is, because it carries indexer and build-tool details the new table doesn't.

## Where each column comes from

The table is built from the `sourcegraph/sourcegraph` sources, not from the old docs:

| Column | Source |
| --- | --- |
| Syntax highlighting | Tree-sitter and Syntect language maps in `internal/gosyntect/languages.go`, for every language name in go-enry (linguist) |
| Symbol search | `SupportedLanguages` and the extension maps in `sourcegraph/go-ctags`, plus the scip-ctags defaults (Hack, Magik, Zig) |
| Search-based navigation | `client/shared/src/codeintel/language-specs` |
| Syntactic navigation | `SUPPORTED_LANGUAGES` in scip-syntax |
| Precise navigation | The [indexer table](https://sourcegraph.com/docs/code-navigation/precise-code-navigation#supported-languages-and-indexers) |
| Auto-indexing | Inference recipes in `internal/codeintel/autoindexing/internal/inference/lua` |

The page describes the 8.1 release. On `main`, auto-indexing inference no longer covers Scala, so that checkmark needs to go when the next release ships.
Auto-indexing inference no longer covers Scala on sourcegraph/sourcegraph main, because scip-java 0.13 dropped Scala support. The checkmark would be wrong from the next release on, so the table follows main.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c6f0-91a7-712d-bbd5-d52c88cd6ccc
The languages most readers look for, such as Go, Python, and TypeScript, were buried in a 129-row alphabetical table. The 15 languages with precise navigation now come first, under "Languages with full support". The other 114 follow under "Languages with partial support", without the syntactic navigation, precise navigation, and auto-indexing columns, which are empty for all of them.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c6f0-91a7-712d-bbd5-d52c88cd6ccc
scip-java 0.13 removed Scala support, but the indexer table still listed Scala next to Java and Kotlin with no caveat, and the new language table inherited that as a bare checkmark. Scala now has its own row in the indexer table, pointing at scip-java releases before 0.13, and the language support page links to it under the full support table.
@github-actions

This comment has been minimized.

The link check flagged the scip-java link on the Java, Kotlin row, which this branch edited. scip-java moved to the scip-code organization, and sourcegraph.com no longer serves the old repository path, so link to the repository on GitHub.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c6f0-91a7-712d-bbd5-d52c88cd6ccc
sourcegraph.com no longer serves the scip-go, scip-typescript, scip-clang, scip-python, and scip-ruby repositories, so the indexer table and the manual indexing list linked to 404 pages. Link to the repositories on GitHub instead, as the monorepo copy of this page does. The scip-java getting started guide moved with the repository to scip-code.github.io.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c6f0-91a7-712d-bbd5-d52c88cd6ccc
| Crontab | ✓ | | |
| CSS | ✓ | ✓ | |
| D | ✓ | ✓ | |
| Dart | ✓ | | ✓ |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have a precise indexer for Dart, built and maintained by the folks at Workiva: https://github.com/scip-code/scip-dart

@keegancsmith

Copy link
Copy Markdown
Member

I might be off here, but aren't our docs being migrated to the monorepo?

This branch was successfully deployed

1 active deployment
Preview — 001b3937 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants