From 914f7ef9c64288cd82bfbe2203809b739b1dae96 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Mon, 21 Jun 2021 08:53:44 -0400 Subject: [PATCH] Add ~H support --- elixir-language-configuration.json | 2 ++ syntaxes/elixir.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/elixir-language-configuration.json b/elixir-language-configuration.json index 21002ad..95c007b 100644 --- a/elixir-language-configuration.json +++ b/elixir-language-configuration.json @@ -22,6 +22,7 @@ { "open": "~D\"", "close": "\"" }, { "open": "~E\"", "close": "\"" }, { "open": "~L\"", "close": "\"" }, + { "open": "~H\"", "close": "\"" }, { "open": "~N\"", "close": "\"" }, { "open": "~R\"", "close": "\"" }, { "open": "~S\"", "close": "\"" }, @@ -39,6 +40,7 @@ { "open": "~D\"\"\"", "close": "\"\"\"" }, { "open": "~E\"\"\"", "close": "\"\"\"" }, { "open": "~L\"\"\"", "close": "\"\"\"" }, + { "open": "~H\"\"\"", "close": "\"\"\"" }, { "open": "~N\"\"\"", "close": "\"\"\"" }, { "open": "~R\"\"\"", "close": "\"\"\"" }, { "open": "~S\"\"\"", "close": "\"\"\"" }, diff --git a/syntaxes/elixir.json b/syntaxes/elixir.json index ecddf32..74f5386 100644 --- a/syntaxes/elixir.json +++ b/syntaxes/elixir.json @@ -1563,7 +1563,7 @@ }, { "comment": "Embedded Liveview heredoc with double quotes", - "begin": "\\s?(~L\"\"\")$", + "begin": "\\s?(~(L|H)\"\"\")$", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.elixir" @@ -1617,7 +1617,7 @@ }, { "comment": "Embededd Liveview heredoc with single quotes", - "begin": "\\s?(~L''')$", + "begin": "\\s?(~(L|H)''')$", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.elixir"