From e61e9977fd4b87d922ccdb14e775f3ef853f4761 Mon Sep 17 00:00:00 2001 From: Kevin Tran Date: Thu, 7 Sep 2023 14:55:50 -0700 Subject: [PATCH] add typescript support --- experimental/piranha_playground/data_validation.py | 2 +- .../piranha_playground/rule_inference/template_parser.py | 1 + experimental/piranha_playground/templates/index.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/experimental/piranha_playground/data_validation.py b/experimental/piranha_playground/data_validation.py index 328142f76..8718fa22e 100644 --- a/experimental/piranha_playground/data_validation.py +++ b/experimental/piranha_playground/data_validation.py @@ -15,7 +15,7 @@ from piranha_playground.rule_inference.utils.pretty_toml import PrettyTOML from piranha_playground.rule_inference.utils.rule_utils import RawRuleGraph -LANGUAGES = ["kt", "java", "go", "swift"] +LANGUAGES = ["kt", "java", "go", "swift", "tsx"] @attr.s diff --git a/experimental/piranha_playground/rule_inference/template_parser.py b/experimental/piranha_playground/rule_inference/template_parser.py index 16638bda5..4646ced4c 100644 --- a/experimental/piranha_playground/rule_inference/template_parser.py +++ b/experimental/piranha_playground/rule_inference/template_parser.py @@ -26,6 +26,7 @@ class TemplateParser: "go": "comment", "kt": "comment", "swift": "comment", + "tsx":"comment" } template_holes = attr.ib(default=attr.Factory(dict)) diff --git a/experimental/piranha_playground/templates/index.html b/experimental/piranha_playground/templates/index.html index 7f8cb0f2c..0cdf00a15 100644 --- a/experimental/piranha_playground/templates/index.html +++ b/experimental/piranha_playground/templates/index.html @@ -28,6 +28,7 @@

Piranha Inference Playground

+