Skip to content

Commit

Permalink
Added additional section underline characters
Browse files Browse the repository at this point in the history
Adds characters ^, :, ", _ and '

Checks for preceding : when indenting after lines ending with ::, to
prevent unintentional indentation after :::-headings.

Fixes #12.
  • Loading branch information
trond-snekvik committed Sep 4, 2021
1 parent d08f8c8 commit 423989a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rst-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"autoCloseBefore": ":})>`\\n ",
"onEnterRules": [
{
"beforeText": "^\\s*\\.\\. *$|::(\\s|$)",
"beforeText": "^\\s*\\.\\. *$|(?<!:)::(\\s|$)",
"action": { "indent": "indent" }
}
],
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/rst.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"title": {
"match": "^(\\*{3,}|#{3,}|\\={3,}|~{3,}|\\+{3,}|-{3,}|`{3,})$",
"match": "^(\\*{3,}|#{3,}|\\={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$",
"name": "markup.heading"
},
"inline-markup": {
Expand Down

0 comments on commit 423989a

Please # to comment.