Skip to content

Commit 10c7d01

Browse files
fix: update langauges
1 parent 78095d8 commit 10c7d01

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

website/guide/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ ast-grep supports a wide range of programming languages. Here is a list of notab
4242
|Server Side Programming| `Go`, `Java`, `Python`, `C-sharp`|
4343
|Web Development| `JS(X)`, `TS(X)`, `HTML`, `CSS`|
4444
|Mobile App Development| `Kotlin`, `Swift`|
45-
|Configuration | `Json`, `YAML`|
46-
|Scripting, Protocols, etc.| `Lua`, `Thrift`|
45+
|Configuration | `Json`, `YAML`, `Hcl`|
46+
|Scripting, Protocols, etc.| `Lua`, `Nix`|
4747

4848
Thanks to [tree-sitter](https://tree-sitter.github.io/tree-sitter/), a popular parser generator library, ast-grep manages to support [many languages](/reference/languages) out of the box!
4949

website/reference/languages.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The table below lists all languages that are supported by ast-grep.
1818
|Elixir | `ex`, `elixir` | `ex`, `exs`|
1919
|Go | `go`, `golang` | `go`|
2020
|Haskell | `hs`, `haskell` | `hs`|
21+
|Hcl | `hcl` | `hcl`|
2122
|Html | `html` | `html`, `htm`, `xhtml`|
2223
|Java | `java` | `java`|
2324
|JavaScript | `javascript`, `js`, `jsx` | `cjs`, `js`, `mjs`, `jsx`|

website/reference/yaml.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ id: no-console-log
3333

3434
Specify the language to parse and the file extension to include in matching.
3535

36-
Valid values are: `C`, `Cpp`, `CSharp`, `Css`, `Go`, `Html`, `Java`, `JavaScript`, `Kotlin`, `Lua`, `Python`, `Rust`, `Scala`, `Swift`, `Thrift`, `Tsx`, `TypeScript`
36+
Valid values are: `Bash`, `C`, `Cpp`, `CSharp`, `Css`, `Elixir`, `Go`, `Haskell`, `Hcl`, `Html`, `Java`, `JavaScript`, `Json`, `Kotlin`, `Lua`, `Nix`, `Php`, `Python`, `Ruby`, `Rust`, `Scala`, `Solidity`, `Swift`, `Tsx`, `TypeScript`, `Yaml`
3737

3838
**Example:**
3939
```yaml
@@ -313,4 +313,4 @@ metadata:
313313
extraField: 'Extra information for other usages'
314314
complexData:
315315
key: value
316-
```
316+
```

0 commit comments

Comments
 (0)