From bf4943eec152ca1617db9c004f19fa5c27aa4b82 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 28 Jan 2022 23:56:45 -0800 Subject: Implement TOML parser No Date/DateTime/Time/Local Time yet --- src/api/schema.d.ts | 3 +++ src/api/schema.js | 4 ++++ src/api/schema.peechy | 1 + src/api/schema.zig | 3 +++ 4 files changed, 11 insertions(+) (limited to 'src/api') diff --git a/src/api/schema.d.ts b/src/api/schema.d.ts index f0437d19c..015f6af40 100644 --- a/src/api/schema.d.ts +++ b/src/api/schema.d.ts @@ -20,6 +20,7 @@ export enum Loader { css = 5, file = 6, json = 7, + toml = 8, } export const LoaderKeys = { 1: "jsx", @@ -36,6 +37,8 @@ export const LoaderKeys = { file: "file", 7: "json", json: "json", + 8: "toml", + toml: "toml", }; export enum FrameworkEntryPointType { client = 1, diff --git a/src/api/schema.js b/src/api/schema.js index 0405b4457..da91af252 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -6,6 +6,7 @@ const Loader = { 5: 5, 6: 6, 7: 7, + 8: 8, jsx: 1, js: 2, ts: 3, @@ -13,6 +14,7 @@ const Loader = { css: 5, file: 6, json: 7, + toml: 8, }; const LoaderKeys = { 1: "jsx", @@ -22,6 +24,7 @@ const LoaderKeys = { 5: "css", 6: "file", 7: "json", + 8: "toml", jsx: "jsx", js: "js", ts: "ts", @@ -29,6 +32,7 @@ const LoaderKeys = { css: "css", file: "file", json: "json", + toml: "toml", }; const FrameworkEntryPointType = { 1: 1, diff --git a/src/api/schema.peechy b/src/api/schema.peechy index 5dea057a9..58ca3f013 100644 --- a/src/api/schema.peechy +++ b/src/api/schema.peechy @@ -8,6 +8,7 @@ smol Loader { css = 5; file = 6; json = 7; + toml = 8; } smol FrameworkEntryPointType { diff --git a/src/api/schema.zig b/src/api/schema.zig index 4bca9cd1f..8f21c350c 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -353,6 +353,9 @@ pub const Api = struct { /// json json, + /// toml + toml, + _, pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { -- cgit v1.2.3