Skip to content

Commit

Permalink
Comments: Enforce space after dots and no blank lines
Browse files Browse the repository at this point in the history
Fixes #25.
  • Loading branch information
trond-snekvik committed Apr 15, 2023
1 parent 2ddf703 commit 4f6f1a8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions syntaxes/rst.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,16 @@
]
},
"block-comment": {
"begin": "^(\\s*)\\.{2}",
"while": "^\\1(?=\\s)|^\\s*$",
"name": "comment.block"
"begin": "^(\\s*)\\.{2}(\\s+|$)",
"end": "^(?=\\S)|^\\s*$",
"name": "comment.block",
"patterns": [
{
"begin": "^\\s{3,}(?=\\S)",
"while": "^\\s{3}.*|^\\s*$",
"name": "comment.block"
}
]
},
"literal-block": {
"begin": "^(\\s*)(.*)(::)\\s*$",
Expand Down

0 comments on commit 4f6f1a8

Please sign in to comment.