From 35750ff5a1b70d980141d46f2a9f0912a0b73463 Mon Sep 17 00:00:00 2001 From: iDavi Date: Mon, 6 Jul 2026 19:45:24 -0300 Subject: [PATCH] fix doc heredoc highlighting --- syntaxes/elixir.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syntaxes/elixir.json b/syntaxes/elixir.json index eb5adb1..ab332f6 100644 --- a/syntaxes/elixir.json +++ b/syntaxes/elixir.json @@ -31,7 +31,7 @@ { "begin": "@(module|type)?doc\\s*(~s)?\"\"\"", "comment": "@doc with interpolated heredocs", - "end": "\\s*\"\"\"", + "end": "^\\s*\"\"\"\\s*$", "name": "comment.documentation.heredoc.elixir", "patterns": [ { @@ -45,7 +45,7 @@ { "begin": "@(module|type)?doc\\s*(~s)?'''", "comment": "@doc with interpolated single quoted heredocs", - "end": "\\s*'''", + "end": "^\\s*'''\\s*$", "name": "comment.documentation.heredoc.elixir", "patterns": [ { @@ -59,7 +59,7 @@ { "begin": "@(module|type)?doc\\s*~S\"\"\"", "comment": "@doc with heredocs is treated as documentation", - "end": "\\s*\"\"\"", + "end": "^\\s*\"\"\"\\s*$", "name": "comment.documentation.heredoc.elixir", "patterns": [ { @@ -70,7 +70,7 @@ { "begin": "@(module|type)?doc\\s*~S'''", "comment": "@doc with heredocs is treated as documentation", - "end": "\\s*'''", + "end": "^\\s*'''\\s*$", "name": "comment.documentation.heredoc.elixir", "patterns": [ {