diff --git a/Language.ml b/Language.ml index 43e3bc3b..c27c1e1e 100644 --- a/Language.ml +++ b/Language.ml @@ -46,6 +46,7 @@ type t = | Vue | Xml | Yaml +| Zig (* Maturity of the support for the programming language as shown to the @@ -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 = []; +}; ] diff --git a/Language.mli b/Language.mli index d8b1f06e..f682a812 100644 --- a/Language.mli +++ b/Language.mli @@ -46,6 +46,7 @@ type t = | Vue | Xml | Yaml +| Zig (* Maturity of the support for the programming language as shown to the diff --git a/generate.py b/generate.py index 3c53599b..b242d578 100755 --- a/generate.py +++ b/generate.py @@ -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 ######################################################################## diff --git a/lang.json b/lang.json index af1658f2..5f55c957 100644 --- a/lang.json +++ b/lang.json @@ -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",