Skip to content

Commit

Permalink
Merge pull request #49 from MarkusAmshove/comment-workaround
Browse files Browse the repository at this point in the history
Add workaround for ambiguous comment at line start
  • Loading branch information
MarkusAmshove authored Aug 1, 2024
2 parents 63ed513 + 00741ab commit 75f10c7
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 75f10c7

Please sign in to comment.