From d938bac95502a36984827460d81720eba38c0dd1 Mon Sep 17 00:00:00 2001 From: Arthur Goldberg Date: Thu, 21 Aug 2025 22:50:32 +0200 Subject: [PATCH] add support for block comments --- resources/syntax/Prisma.sublime-syntax | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/syntax/Prisma.sublime-syntax b/resources/syntax/Prisma.sublime-syntax index 5c82ecd..48bfe32 100644 --- a/resources/syntax/Prisma.sublime-syntax +++ b/resources/syntax/Prisma.sublime-syntax @@ -37,6 +37,7 @@ contexts: prototype: - include: documentation_comment - include: line_comment + - include: block_comment documentation_comment: - match: \/{3} @@ -48,6 +49,17 @@ contexts: - match: $\n? pop: 1 + block_comment: + - match: '/\*' + scope: punctuation.definition.comment.begin.prisma + push: block_comment_body + + block_comment_body: + - meta_scope: comment.block.prisma + - match: '\*/' + scope: punctuation.definition.comment.end.prisma + pop: 1 + line_comment: - match: \/{2} scope: punctuation.definition.comment.prisma