From d10d0ec98721b4d10473e34acd55eb877667f1e5 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 23 Jan 2025 12:03:34 +0100 Subject: [PATCH] Parse `.xmake.cfg` files as TOML --- rewrite-toml/src/main/java/org/openrewrite/toml/TomlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-toml/src/main/java/org/openrewrite/toml/TomlParser.java b/rewrite-toml/src/main/java/org/openrewrite/toml/TomlParser.java index 37b2ac6f826..9ce1afacb39 100644 --- a/rewrite-toml/src/main/java/org/openrewrite/toml/TomlParser.java +++ b/rewrite-toml/src/main/java/org/openrewrite/toml/TomlParser.java @@ -69,7 +69,7 @@ public Stream parse(@Language("toml") String... sources) { @Override public boolean accept(Path path) { - return path.toString().endsWith(".toml"); + return path.toString().endsWith(".toml") || path.endsWith(".xmake.cfg"); } @Override