From c76b74ffeb2b0f56ef9a0d3a318cd1e297622c9f Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:19:23 +0530 Subject: [PATCH] Update lang-yaml.js --- prettify/lang-yaml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prettify/lang-yaml.js b/prettify/lang-yaml.js index c38729b6..1f533d84 100644 --- a/prettify/lang-yaml.js +++ b/prettify/lang-yaml.js @@ -1,2 +1,2 @@ -var a=null; +let a=null; PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]);