Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Language.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type t =
| Vue
| Xml
| Yaml
| Zig

(*
Maturity of the support for the programming language as shown to the
Expand Down Expand Up @@ -662,4 +663,17 @@ let list = [
shebangs = [];
tags = [];
};
{
id = Zig;
id_string = "zig";
name = "Zig";
keys = [{|zig|}];
exts = [{|.zig|}; {|.zon|}];
maturity = Develop;
example_ext = Some {|.zig|};
excluded_exts = [];
reverse_exts = None;
shebangs = [];
tags = [];
};
]
1 change: 1 addition & 0 deletions Language.mli
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type t =
| Vue
| Xml
| Yaml
| Zig

(*
Maturity of the support for the programming language as shown to the
Expand Down
10 changes: 10 additions & 0 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,16 @@ def to_json(self):
maturity=Maturity.ALPHA,
shebangs=[]
),
Language(
comment="",
id_="zig",
name="Zig",
keys=["zig"],
exts=[".zig", ".zon"],
example_ext=".zig",
maturity=Maturity.DEVELOP,
shebangs=[]
),
########################################################################
# Entries that are not programming languages or data formats
########################################################################
Expand Down
18 changes: 18 additions & 0 deletions lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,24 @@
"is_target_language": true,
"tags": []
},
{
"id": "zig",
"name": "Zig",
"keys": [
"zig"
],
"maturity": "develop",
"exts": [
".zig",
".zon"
],
"example_ext": ".zig",
"excluded_exts": [],
"reverse_exts": null,
"shebangs": [],
"is_target_language": true,
"tags": []
},
{
"comment": "This can be used in rules as a target selector that selects\nall the files regardless of their extension or contents.\nWhen no target analyzer is specified, the spacegrep engine shall\nbe used.\n",
"id": "generic",
Expand Down