From c78e2ae4881778ae20a2ed71fc0a5b85052e93ad Mon Sep 17 00:00:00 2001 From: Sarah Brown Date: Mon, 19 Jul 2021 07:21:40 -0400 Subject: [PATCH 1/2] add Tex (and latex) support --- syntax.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/syntax.json b/syntax.json index 8c05578..99ecf38 100644 --- a/syntax.json +++ b/syntax.json @@ -397,5 +397,21 @@ } } ] + }, + { + "language": " TeX", + "markers": [ + { + "type": "line", + "pattern": "%" + }, + { + "type": "block", + "pattern": { + "start": "\begin{comment}", + "end": "\end{comment}" + } + } + ] } ] From 2a463740c530f8d3e2ffbc685449e85a6bb3a63e Mon Sep 17 00:00:00 2001 From: Alastair Mooney Date: Tue, 20 Jul 2021 15:20:20 +0100 Subject: [PATCH 2/2] Update syntax.json Co-authored-by: Sarah Brown --- syntax.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.json b/syntax.json index 99ecf38..c21c9de 100644 --- a/syntax.json +++ b/syntax.json @@ -408,8 +408,8 @@ { "type": "block", "pattern": { - "start": "\begin{comment}", - "end": "\end{comment}" + "start": "\\begin{comment}", + "end": "\\end{comment}" } } ]