Skip to content

Commit

Permalink
is / where: don't capture start of line
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesaulniers committed Aug 24, 2024
1 parent 34732a8 commit 1bb6ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/teal.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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": {
Expand Down

0 comments on commit 1bb6ae9

Please sign in to comment.