Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions resources/syntax/Prisma.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ contexts:
prototype:
- include: documentation_comment
- include: line_comment
- include: block_comment

documentation_comment:
- match: \/{3}
Expand All @@ -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
Expand Down