File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed
Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ export const luaConfiguration: vscode.LanguageConfiguration = {
1414 { open : "[=====" , close : "=====]" } ,
1515 ] ,
1616 onEnterRules : [
17+ {
18+ beforeText : / \) \s * $ / ,
19+ afterText : / ^ \s * e n d \b / ,
20+ action : {
21+ indentAction : vscode . IndentAction . IndentOutdent ,
22+ }
23+ } ,
1724 {
1825 beforeText : / \b ( \) | t h e n | d o | e l s e ) \b \s * $ / ,
1926 afterText : / ^ \s * e n d \b / ,
@@ -28,5 +35,34 @@ export const luaConfiguration: vscode.LanguageConfiguration = {
2835 indentAction : vscode . IndentAction . IndentOutdent ,
2936 }
3037 } ,
31- ]
38+ {
39+ beforeText : / ^ \s * - - - @ / ,
40+ action : {
41+ indentAction : vscode . IndentAction . None ,
42+ appendText : "---@"
43+ }
44+ } ,
45+ {
46+ beforeText : / ^ \s * - - - @ / ,
47+ action : {
48+ indentAction : vscode . IndentAction . None ,
49+ appendText : "--- @"
50+ }
51+ } ,
52+ {
53+ beforeText : / ^ \s * - - - / ,
54+ action : {
55+ indentAction : vscode . IndentAction . None ,
56+ appendText : "--- "
57+ }
58+ } ,
59+ {
60+ beforeText : / ^ \s * - - - / ,
61+ action : {
62+ indentAction : vscode . IndentAction . None ,
63+ appendText : "---"
64+ }
65+ } ,
66+ ] ,
67+ wordPattern : / ( - ? \d * \. \d \w * ) | ( - ? \d + \. ) | ( [ \p{ L} _ \u1000 0 - \uFFFF F F F F ] [ \p{ L} \p{ N} _ \u1000 0 - \uFFFF F F F F ] * ) / gu,
3268} ;
You can’t perform that action at this time.
0 commit comments