From 249372ee8b3619aacfb700abe8ec07fb9b31e365 Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Sat, 30 Dec 2023 06:03:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96:=20update=20grammars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shiki/languages/cobol.tmLanguage.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/shiki/languages/cobol.tmLanguage.json b/packages/shiki/languages/cobol.tmLanguage.json index 441752107..36275903a 100644 --- a/packages/shiki/languages/cobol.tmLanguage.json +++ b/packages/shiki/languages/cobol.tmLanguage.json @@ -268,6 +268,20 @@ "match": "(?i:substitute-case|substitute)\\s+", "name": "invalid.illegal.functions.cobolit" }, + { + "match": "((((>>|\\$)[\\s]*)(?i:elif))(.*$))", + "captures": { + "1": { + "name": "invalid.illegal.keyword.control.directive.conditional.cobol" + }, + "2": { + "name": "invalid.illegal.entity.name.function.preprocessor.cobol" + }, + "3": { + "name": "invalid.illegal.entity.name.function.preprocessor.cobol" + } + } + }, { "match": "((((>>|\\$)[\\s]*)(?i:if|else|elif|end-if|end-evaluate|end|define|evaluate|when|display|call-convention|set))(.*$))", "captures": {