Skip to content

Commit

Permalink
Continue single-line comments after pressing enter
Browse files Browse the repository at this point in the history
Closes issue #19
  • Loading branch information
marvinborner committed Oct 2, 2024
1 parent 0d9b307 commit ae34c14
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["(", ")"]
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -20,7 +20,23 @@
["<{", "}>"]
],
"folding": {
"offSide": false,
"offSide": false
},
"wordPattern": "([a-zA-Z][a-zA-Z0-9_]*)"
"wordPattern": "([a-zA-Z][a-zA-Z0-9_]*)",
"onEnterRules": [
{
"beforeText": "^\\s*//[^/].*$",
"action": {
"appendText": "// ",
"indent": "none"
}
},
{
"beforeText": "^\\s*///.*$",
"action": {
"appendText": "/// ",
"indent": "none"
}
}
]
}

0 comments on commit ae34c14

Please sign in to comment.