Skip to content

Commit

Permalink
feat: automatically continue doc-comments (///, /**) on next line
Browse files Browse the repository at this point in the history
  • Loading branch information
badeend committed Sep 3, 2023
1 parent 7e887c6 commit b037f85
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,35 @@
"end": "^\\s*// endregion\\b"
}
},
"wordPattern": "((?<![\\-\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)(([\\-])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)"
"wordPattern": "((?<![\\-\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)(([\\-])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)",
"onEnterRules": [
{
"beforeText": "^\\s*///.*$",
"action": {
"indent": "none",
"appendText": "/// "
}
},
{
"beforeText": "^\\s*/\\*\\*.*$",
"action": {
"indent": "none",
"appendText": " * "
}
},
{
"beforeText": "^\\s+\\*\\s+.*$",
"action": {
"indent": "outdent",
"appendText": " * "
}
},
{
"beforeText": "^(\t| )* \\*/\\s*$",
"action": {
"indent": "none",
"removeText": 1
}
}
]
}

0 comments on commit b037f85

Please sign in to comment.