From a5b5e06c7897e80a83a325b6ceb5a0acc20ad07e Mon Sep 17 00:00:00 2001 From: angelozerr Date: Fri, 16 Apr 2021 10:44:38 +0200 Subject: [PATCH] .kafka comments are breaking syntax coloration in producers/consumers Fixes #161 Signed-off-by: azerr --- CHANGELOG.md | 3 ++- syntaxes/kafka.tmLanguage.json | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7250668..676dac9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ All notable changes to `Tools for Apache Kafka®` are documented in this file. - The "Kafka Producer Log" output view is no longer shown automatically when producing messages. See [#134](https://github.com/jlandersen/vscode-kafka/issues/134). - A progress notification is displayed when producing messages. See [#117](https://github.com/jlandersen/vscode-kafka/issues/117). -Fix bad highlighting when declaring json messages with fakerjs placeholders. See [#132](https://github.com/jlandersen/vscode-kafka/issues/132). - + - Fix .kafka comments which breaks syntax coloration in producers and consumers. See [#161](https://github.com/jlandersen/vscode-kafka/issues/161). + ## [0.11.0] - 2021-03-08 ### Added - Newly created topic or cluster is automatically selected in the Kafka Explorer. See [#61](https://github.com/jlandersen/vscode-kafka/issues/61). diff --git a/syntaxes/kafka.tmLanguage.json b/syntaxes/kafka.tmLanguage.json index 8180b5d..7a5596c 100644 --- a/syntaxes/kafka.tmLanguage.json +++ b/syntaxes/kafka.tmLanguage.json @@ -46,6 +46,9 @@ "patterns": [ { "include": "#kafka.consumer.header" + }, + { + "include": "#kafka.commentline" } ] }, @@ -92,6 +95,9 @@ { "include": "#kafka.producer.header" }, + { + "include": "#kafka.commentline" + }, { "include": "#kafka.producer.body" }