Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8927cb7

Browse files
lookrachaelrenk
andauthored
Update languages supported for code navigation (#50739)
Co-authored-by: Rachael Rose Renk <[email protected]>
1 parent cadec7d commit 8927cb7

4 files changed

Lines changed: 53 additions & 25 deletions

File tree

content/repositories/working-with-files/using-files/navigating-code-on-github.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,28 @@ Code navigation uses the open source [`tree-sitter`](https://github.com/tree-sit
2323

2424
{% rowheaders %}
2525

26-
| Language | Search-based code navigation | Precise code navigation |
27-
|:----------:|:----------------------------:|:-----------------------:|
28-
| C# | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
29-
| CodeQL | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
30-
| Elixir | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
31-
| Go | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
32-
| Java | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
33-
| JavaScript | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
34-
| PHP | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
35-
| Python | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
36-
| Ruby | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
37-
| Rust | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
38-
| TypeScript | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
26+
| Language | Search-based code navigation | Precise code navigation |
27+
|------------------|:--------------------------------------------:|:--------------------------------------------:|
28+
| Bash | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
29+
| C | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
30+
| C# | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
31+
| C++ | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
32+
| CodeQL | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
33+
| Elixir | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
34+
| Go | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
35+
| JSX | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
36+
| Java | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
37+
| JavaScript | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
38+
| Lua | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
39+
| PHP | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
40+
| Protocol Buffers | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
41+
| Python | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
42+
| Ruby | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
43+
| Rust | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
44+
| Scala | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
45+
| Starlark | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
46+
| Swift | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
47+
| TypeScript | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
3948

4049
{% endrowheaders %}
4150

content/search-github/github-code-search/about-github-code-search.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ Code search is integrated with features in the search interface on {% data varia
1818

1919
{% data reusables.search.non-code-search-explanation %}
2020

21+
## Code navigation
22+
23+
{% data variables.product.prodname_dotcom %} code search provides code navigation for supported languages. This includes jumping to the definition of and finding references for programming language constructs like classes, structs, functions, and methods. See "[AUTOTITLE](/repositories/working-with-files/using-files/navigating-code-on-github)."
24+
25+
Supported languages for code navigation include:
26+
27+
{% data reusables.search.code-nav-supported-languages %}
28+
2129
## Limitations
2230

2331
We have indexed many public repositories for code search, and continue to index more. Additionally, the private repositories of {% data variables.product.prodname_dotcom%} users are indexed and searchable by those that already have access to those private repositories on {% data variables.product.prodname_dotcom_the_website %}. However, very large repositories may not be indexed at this time, and not all code is indexed.

content/search-github/github-code-search/understanding-github-code-search-syntax.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,9 @@ You can also use regular expressions with the symbol qualifier. For example, the
238238
language:rust symbol:/^String::to_.*/
239239
```
240240

241-
Note that this qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. Symbol extraction is supported for the following languages.
242-
243-
- C#
244-
- Python
245-
- Go
246-
- Java
247-
- JavaScript
248-
- TypeScript
249-
- PHP
250-
- Protocol Buffers
251-
- Ruby
252-
- Rust
241+
Note that this qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. Symbol extraction is supported for the following languages:
242+
243+
{% data reusables.search.code-nav-supported-languages %}
253244

254245
We are working on adding support for more languages. If you would like to help contribute to this effort, you can add support for your language in the open source [Tree-sitter](https://github.com/tree-sitter) parser ecosystem, upon which symbol search is based.
255246

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- Bash
2+
- C
3+
- C#
4+
- C++
5+
- CodeQL
6+
- Elixir
7+
- Go
8+
- JSX
9+
- Java
10+
- JavaScript
11+
- Lua
12+
- PHP
13+
- Protocol Buffers
14+
- Python
15+
- Ruby
16+
- Rust
17+
- Scala
18+
- Starlark
19+
- Swift
20+
- Typescript

0 commit comments

Comments
 (0)