From e12decde7fc092ab53d1e860e88b7e538d6ad24b Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 18 Oct 2023 14:54:50 +0900 Subject: [PATCH] Add URL Pattern standard This includes support for overriding the .editorconfig max_line_length in the spec's Bikeshed file. --- .editorconfig.template | 2 +- factory.json | 8 ++++++++ factory.py | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.editorconfig.template b/.editorconfig.template index fb34a07..80795ce 100644 --- a/.editorconfig.template +++ b/.editorconfig.template @@ -13,7 +13,7 @@ max_line_length = 100 indent_style = tab [*.bs] -indent_size = @@bikeshed_indent_size@@ +indent_size = @@bikeshed_indent_size@@@@bikeshed_max_line_length@@ [*.py] indent_size = 4 diff --git a/factory.json b/factory.json index 6bd32c5..3304d90 100644 --- a/factory.json +++ b/factory.json @@ -53,6 +53,14 @@ "extra_implementers": ["Deno", "Node.js"], "readme": "README.md.anne.template-part" }, + "urlpattern": { + "extra_implementers": [ + "Deno", + "kenchris/urlpattern-polyfill" + ], + "bikeshed_indent_size": 2, + "bikeshed_max_line_length": "off" + }, "webidl": { ".gitignore": ["/node_modules/"], "bikeshed_indent_size": 4, diff --git a/factory.py b/factory.py index d084e65..3063d5a 100755 --- a/factory.py +++ b/factory.py @@ -60,6 +60,8 @@ def fill_template(contents, variables): data = "\n\tEXTRA_FILES=\"{}\" \\".format(data) elif variable == "bikeshed_indent_size": data = str(data) + elif variable == "bikeshed_max_line_length" and data != "": + data = "\nmax_line_length = {}".format(data) elif variable == "build_with_node" and data != "": data = """ - uses: actions/setup-node@v3 @@ -91,6 +93,7 @@ def update_files(shortname, name, in_main=False): "h1": name, "extra_files": "", "bikeshed_indent_size": 1, + "bikeshed_max_line_length": "", "build_with_node": "", "post_build_step": "", ".gitignore": [],