From b39e8200ba83fa23860ea5185cf45073f8b49290 Mon Sep 17 00:00:00 2001 From: TrisTOON <36267812+TrisTOON@users.noreply.github.com> Date: Wed, 29 Apr 2020 19:37:27 +0200 Subject: [PATCH] Allows some comments after `end` --- grammars/language-algol60.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/grammars/language-algol60.json b/grammars/language-algol60.json index 4290170..efe4e8b 100644 --- a/grammars/language-algol60.json +++ b/grammars/language-algol60.json @@ -48,6 +48,16 @@ } }, "end": "(?=;)" + }, + { + "contentName": "comment.block.algol60", + "begin": "\\bend\\b", + "beginCaptures": { + "0": { + "name": "keyword.control.algol60" + } + }, + "end": "(?=;|\\b(Boolean|array|else|end|integer|own|procedure|real|switch)\\b)" } ] },