From 1bb6ae9c59ff0366f05b1e6539ae0112f17df8fb Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Fri, 23 Aug 2024 21:33:07 -0400 Subject: [PATCH] is / where: don't capture start of line --- syntaxes/teal.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/teal.tmLanguage.json b/syntaxes/teal.tmLanguage.json index caa2f95..e2e2a15 100644 --- a/syntaxes/teal.tmLanguage.json +++ b/syntaxes/teal.tmLanguage.json @@ -636,7 +636,7 @@ }, { "begin": "\\b(is)\\b", - "end": "(?=\\bend\\b|\\bwhere\\b|\\brecord\\b|\\benum\\b|\\buserdata\\b|\\bmetamethod\\b|\\[|^\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*:)", + "end": "(?=\\bend\\b|\\bwhere\\b|\\brecord\\b|\\benum\\b|^\\s*\\buserdata\\b|^\\s*\\bmetamethod\\b|\\[|^\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*:)", "captures": { "0": { "name": "keyword.other.teal" @@ -653,7 +653,7 @@ }, { "begin": "\\b(where)\\b", - "end": "(?=\\bend\\b|\\brecord\\b|\\benum\\b|\\buserdata\\b|\\bmetamethod\\b|\\[|^\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*:)", + "end": "(?=\\bend\\b|\\brecord\\b|\\benum\\b|^\\s*\\buserdata\\b|^\\s*\\bmetamethod\\b|\\[|^\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*:)", "name": "where-clause.teal", "captures": { "0": {