Skip to content

Commit

Permalink
Add workaround for ambiguous comment at line start
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusAmshove committed Aug 1, 2024
1 parent 63ed513 commit 00741ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion natural/Natural.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
{ "include": "#hex-literal" },
{ "include": "#system-vars" },
{ "include": "#inline-comment" },
{ "include": "#perform-subroutine" },
{ "include": "#inline-comment-workaround" },
{ "include": "#line-comment" },
{ "include": "#perform-subroutine" },
{ "include": "#labels" }
],
"repository": {
Expand Down Expand Up @@ -119,6 +120,11 @@
"begin": "/\\*(?!\\)|:)",
"end": "$"
},
"inline-comment-workaround": {
"name": "comment.block.natural",
"begin": "^/\\*\\)",
"end": "$"
},
"line-comment": {
"name": "comment.line.natural",
"begin": "^\\*[\\s\\*]+",
Expand Down

0 comments on commit 00741ab

Please sign in to comment.