Skip to content

Commit 78a1897

Browse files
committed
pre post
1 parent b6fcccb commit 78a1897

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

Diff for: janet.configuration.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@
2020
["{", "}"]
2121
],
2222
"wordPattern": "[A-Za-z0-9\\!\\$\\%\\&\\*\\+\\-\\.\\/\\:\\<\\?\\=\\>\\@\\^\\_\\|\\x80-\\xFF]+",
23-
"indentationRules": {
24-
"decreaseIndentPattern": "^((?!#).)*\\s*[\\}\\]].*$",
25-
"increaseIndentPattern": "^((?!#).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"
26-
}
27-
}
23+
"onEnterRules": [
24+
{
25+
"beforeText": "^[^#]*(\\{[^}]*|\\([^)]*|\\[[^\\]]*)$",
26+
"action": { "indent": "indent" }
27+
},
28+
{
29+
"beforeText": "(^[^\\[#]*\\]\\s*(#.*)?\\s*$)|(^[^\\(#]*\\)\\s*(#.*)?\\s*$)|(^[^\\{#]*\\}\\s*(#.*)?\\s*$)",
30+
"action": { "indent": "outdent" }
31+
}
32+
]
33+
}

Diff for: out/extension.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: out/extension.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)