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": [ {