Skip to content

Commit

Permalink
Merge pull request #17 from garaemon/support-remote-environment
Browse files Browse the repository at this point in the history
  • Loading branch information
garaemon authored Aug 11, 2022
2 parents 74a7959 + bc5cae6 commit 2ec5fa2
Show file tree
Hide file tree
Showing 43 changed files with 576 additions and 52 deletions.
29 changes: 29 additions & 0 deletions copy_language_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env python

import pathlib
import os
import shutil
import sys


def main(path_to_extension):
target_directory = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'resources')
if not os.path.exists(path_to_extension):
raise Exception(f'{path_to_extension} does not exist')
for root, dir, files in os.walk(path_to_extension):
for f in files:
if f == 'language-configuration.json':
language_configuration = os.path.join(root, f)
language_directory = os.path.join(
target_directory,
pathlib.Path(root).relative_to(path_to_extension))
if not os.path.exists(language_directory):
os.mkdir(language_directory)
print(
f'Copy: {language_configuration} => {language_directory}')
shutil.copy(language_configuration, language_directory)


if __name__ == '__main__':
main(sys.argv[1])
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-emacs-tab",
"displayName": "vscode-emacs-tab",
"description": "emacs like tab behavior",
"version": "0.0.9",
"version": "0.0.10",
"publisher": "garaemon",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions resources/bat/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"@REM"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["%","%"],["\"","\""]],"folding":{"markers":{"start":"^\\s*(::|REM|@REM)\\s*#region","end":"^\\s*(::|REM|@REM)\\s*#endregion"}}}
1 change: 1 addition & 0 deletions resources/clojure/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":";;"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""]],"folding":{"offSide":true}}
1 change: 1 addition & 0 deletions resources/coffeescript/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#","blockComment":["###","###"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],[" "," "]],"folding":{"offSide":true,"markers":{"start":"^\\s*#region\\b","end":"^\\s*#endregion\\b"}}}
1 change: 1 addition & 0 deletions resources/cpp/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"[","close":"]"},{"open":"{","close":"}"},{"open":"(","close":")"},{"open":"'","close":"'","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],["<",">"]],"wordPattern":"(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)","folding":{"markers":{"start":"^\\s*#pragma\\s+region\\b","end":"^\\s*#pragma\\s+endregion\\b"}}}
1 change: 1 addition & 0 deletions resources/csharp/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"'","close":"'","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["<",">"],["'","'"],["\"","\""]],"folding":{"markers":{"start":"^\\s*#region\\b","end":"^\\s*#endregion\\b"}}}
1 change: 1 addition & 0 deletions resources/css/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}","notIn":["string","comment"]},{"open":"[","close":"]","notIn":["string","comment"]},{"open":"(","close":")","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string","comment"]},{"open":"'","close":"'","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"folding":{"markers":{"start":"^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/","end":"^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"}},"indentationRules":{"increaseIndentPattern":"(^.*\\{[^}]*$)","decreaseIndentPattern":"^\\s*\\}"},"wordPattern":"(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])"}
1 change: 1 addition & 0 deletions resources/dart/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"'","close":"'","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string"]},{"open":"`","close":"`","notIn":["string","comment"]},{"open":"/**","close":" */","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["<",">"],["'","'"],["\"","\""],["`","`"]]}
1 change: 1 addition & 0 deletions resources/diff/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#","blockComment":["#"," "]},"brackets":[["{","}"],["[","]"],["(",")"]]}
1 change: 1 addition & 0 deletions resources/docker/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]]}
1 change: 1 addition & 0 deletions resources/fsharp/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["(*","*)"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"\"","close":"\"","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"folding":{"offSide":true,"markers":{"start":"^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)","end":"^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)"}}}
1 change: 1 addition & 0 deletions resources/go/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"`","close":"`","notIn":["string"]},{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],["`","`"]],"indentationRules":{"increaseIndentPattern":"^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$","decreaseIndentPattern":"^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"},"folding":{"markers":{"start":"^\\s*//\\s*#?region\\b","end":"^\\s*//\\s*#?endregion\\b"}}}
1 change: 1 addition & 0 deletions resources/groovy/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]]}
42 changes: 42 additions & 0 deletions resources/handlebars/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"comments": {
"blockComment": [ "{{!--", "--}}" ]
},
"brackets": [
["<!--", "-->"],
["<", ">"],
["{{", "}}"],
["{{{", "}}}"],
["{", "}"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}"},
{ "open": "[", "close": "]"},
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'" },
{ "open": "\"", "close": "\"" }
],
"surroundingPairs": [
{ "open": "'", "close": "'" },
{ "open": "\"", "close": "\"" },
{ "open": "<", "close": ">" },
{ "open": "{", "close": "}" }
],
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)",
"onEnterRules": [
{
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" },
"afterText": { "pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>", "flags": "i" },
"action": {
"indent": "indentOutdent"
}
},
{
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))(\\w[\\w\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" },
"action": {
"indent": "indent"
}
}
],
}
1 change: 1 addition & 0 deletions resources/hlsl/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""]],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""]]}
1 change: 1 addition & 0 deletions resources/html/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"blockComment":["<!--","-->"]},"brackets":[["<!--","-->"],["<",">"],["{","}"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"'","close":"'"},{"open":"\"","close":"\""},{"open":"<!--","close":"-->","notIn":["comment","string"]}],"surroundingPairs":[{"open":"'","close":"'"},{"open":"\"","close":"\""},{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"<","close":">"}],"colorizedBracketPairs":[],"folding":{"markers":{"start":"^\\s*<!--\\s*#region\\b.*-->","end":"^\\s*<!--\\s*#endregion\\b.*-->"}},"wordPattern":"(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)","onEnterRules":[{"beforeText":{"pattern":"<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$","flags":"i"},"afterText":{"pattern":"^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>","flags":"i"},"action":{"indent":"indentOutdent"}},{"beforeText":{"pattern":"<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$","flags":"i"},"action":{"indent":"indent"}}],"indentationRules":{"increaseIndentPattern":"<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|keygen|link|menuitem|meta|param|source|track|wbr)\\b|[^>]*\\/>)([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}\"']*$","decreaseIndentPattern":"^\\s*(<\\/(?!html)[-_\\.A-Za-z0-9]+\\b[^>]*>|-->|\\})"}}
1 change: 1 addition & 0 deletions resources/java/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]},{"open":"/**","close":" */","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],["<",">"]],"folding":{"markers":{"start":"^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))","end":"^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))"}}}
1 change: 1 addition & 0 deletions resources/json/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"]],"autoClosingPairs":[{"open":"{","close":"}","notIn":["string"]},{"open":"[","close":"]","notIn":["string"]},{"open":"(","close":")","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]},{"open":"\"","close":"\"","notIn":["string","comment"]},{"open":"`","close":"`","notIn":["string","comment"]}],"indentationRules":{"increaseIndentPattern":"({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)","decreaseIndentPattern":"^\\s*[}\\]],?\\s*$"}}
1 change: 1 addition & 0 deletions resources/julia/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#","blockComment":["#=","=#"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],["`","`"],{"open":"\"","close":"\"","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["`","`"]],"folding":{"markers":{"start":"^\\s*#region","end":"^\\s*#endregion"}},"indentationRules":{"increaseIndentPattern":"^(\\s*|.*=\\s*|.*@\\w*\\s*)[\\w\\s]*(?:[\"'`][^\"'`]*[\"'`])*[\\w\\s]*\\b(if|while|for|function|macro|(mutable\\s+)?struct|abstract\\s+type|primitive\\s+type|let|quote|try|begin|.*\\)\\s*do|else|elseif|catch|finally)\\b(?!(?:.*\\bend\\b[^\\]]*)|(?:[^\\[]*\\].*)$).*$","decreaseIndentPattern":"^\\s*(end|else|elseif|catch|finally)\\b.*$"}}
1 change: 1 addition & 0 deletions resources/less/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"blockComment":["/*","*/"],"lineComment":"//"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}","notIn":["string","comment"]},{"open":"[","close":"]","notIn":["string","comment"]},{"open":"(","close":")","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string","comment"]},{"open":"'","close":"'","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"folding":{"markers":{"start":"^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/","end":"^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"}},"indentationRules":{"increaseIndentPattern":"(^.*\\{[^}]*$)","decreaseIndentPattern":"^\\s*\\}"},"wordPattern":"(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])"}
1 change: 1 addition & 0 deletions resources/lua/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"--","blockComment":["--[[","]]"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"indentationRules":{"increaseIndentPattern":"^((?!(\\-\\-)).)*((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$","decreaseIndentPattern":"^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))"}}
1 change: 1 addition & 0 deletions resources/make/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"'","close":"'","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string","comment"]}]}
56 changes: 56 additions & 0 deletions resources/markdown-basics/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"comments": {
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [
"<!--",
"-->"
]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"colorizedBracketPairs": [
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "<",
"close": ">",
"notIn": [
"string"
]
}
],
"surroundingPairs": [
["(", ")"],
["[", "]"],
["`", "`"],
["_", "_"],
["*", "*"],
["{", "}"],
["'", "'"],
["\"", "\""]
],
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*<!--\\s*#?region\\b.*-->",
"end": "^\\s*<!--\\s*#?endregion\\b.*-->"
}
},
"wordPattern": { "pattern": "(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})(((\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})|[_])?(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark}))*", "flags": "ug" },
}
1 change: 1 addition & 0 deletions resources/objective-c/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//","blockComment":["/*","*/"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]]}
81 changes: 81 additions & 0 deletions resources/php/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"comments": {
"lineComment": "//", // "#"
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}", "notIn": ["string"] },
{ "open": "[", "close": "]", "notIn": ["string"] },
{ "open": "(", "close": ")", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
{ "open": "/**", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["`", "`"]
],
"indentationRules": {
"increaseIndentPattern": "({(?!.*}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*((/[/*].*|)?$|\\?>)",
"decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\]\\)*[;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch));))"
},
"folding": {
"markers": {
"start": "^\\s*(#|\/\/)region\\b",
"end": "^\\s*(#|\/\/)endregion\\b"
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\-\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
"onEnterRules": [
{
// e.g. /** | */
"beforeText": "^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$",
"afterText": "^\\s*\\*\\/$",
"action": {
"indent": "indentOutdent",
"appendText": " * "
}
},
{
// e.g. /** ...|
"beforeText": "^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$",
"action": {
"indent": "none",
"appendText": " * "
}
},
{
// e.g. * ...|
"beforeText": "^(\\t|(\\ \\ ))*\\ \\*(\\ ([^\\*]|\\*(?!\\/))*)?$",
"action": {
"indent": "none",
"appendText": "* ",
},
},
{
// e.g. */|
"beforeText": "^(\\t|(\\ \\ ))*\\ \\*\\/\\s*$",
"action": {
"indent": "none",
"removeText": 1
},
},
{
// e.g. *-----*/|
"beforeText": "^(\\t|(\\ \\ ))*\\ \\*[^/]*\\*\\/\\s*$",
"action": {
"indent": "none",
"removeText": 1
}
}
]
}
1 change: 1 addition & 0 deletions resources/powershell/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#","blockComment":["<#","#>"]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"@'","close":"\n'@","notIn":["string","comment"]},{"open":"@\"","close":"\n\"@","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string","comment"]},["<#","#>"]],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"folding":{"markers":{"start":"^\\s*#[rR]egion\\b","end":"^\\s*#[eE]nd[rR]egion\\b"}}}
1 change: 1 addition & 0 deletions resources/pug/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"//-"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["'","'"],["\"","\""]],"folding":{"offSide":true}}
1 change: 1 addition & 0 deletions resources/python/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#","blockComment":["\"\"\"","\"\"\""]},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}"},{"open":"[","close":"]"},{"open":"(","close":")"},{"open":"\"","close":"\"","notIn":["string"]},{"open":"r\"","close":"\"","notIn":["string","comment"]},{"open":"R\"","close":"\"","notIn":["string","comment"]},{"open":"u\"","close":"\"","notIn":["string","comment"]},{"open":"U\"","close":"\"","notIn":["string","comment"]},{"open":"f\"","close":"\"","notIn":["string","comment"]},{"open":"F\"","close":"\"","notIn":["string","comment"]},{"open":"b\"","close":"\"","notIn":["string","comment"]},{"open":"B\"","close":"\"","notIn":["string","comment"]},{"open":"'","close":"'","notIn":["string","comment"]},{"open":"r'","close":"'","notIn":["string","comment"]},{"open":"R'","close":"'","notIn":["string","comment"]},{"open":"u'","close":"'","notIn":["string","comment"]},{"open":"U'","close":"'","notIn":["string","comment"]},{"open":"f'","close":"'","notIn":["string","comment"]},{"open":"F'","close":"'","notIn":["string","comment"]},{"open":"b'","close":"'","notIn":["string","comment"]},{"open":"B'","close":"'","notIn":["string","comment"]},{"open":"`","close":"`","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"],["`","`"]],"folding":{"offSide":true,"markers":{"start":"^\\s*#\\s*region\\b","end":"^\\s*#\\s*endregion\\b"}},"onEnterRules":[{"beforeText":"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$","action":{"indent":"indent"}}]}
1 change: 1 addition & 0 deletions resources/r/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"comments":{"lineComment":"#"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]},{"open":"'","close":"'","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]]}
Loading

0 comments on commit 2ec5fa2

Please sign in to comment.