Skip to content

Commit 2ec5fa2

Browse files
authored
Merge pull request #17 from garaemon/support-remote-environment
2 parents 74a7959 + bc5cae6 commit 2ec5fa2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+576
-52
lines changed

copy_language_configuration.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env python
2+
3+
import pathlib
4+
import os
5+
import shutil
6+
import sys
7+
8+
9+
def main(path_to_extension):
10+
target_directory = os.path.join(os.path.dirname(os.path.abspath(__file__)),
11+
'resources')
12+
if not os.path.exists(path_to_extension):
13+
raise Exception(f'{path_to_extension} does not exist')
14+
for root, dir, files in os.walk(path_to_extension):
15+
for f in files:
16+
if f == 'language-configuration.json':
17+
language_configuration = os.path.join(root, f)
18+
language_directory = os.path.join(
19+
target_directory,
20+
pathlib.Path(root).relative_to(path_to_extension))
21+
if not os.path.exists(language_directory):
22+
os.mkdir(language_directory)
23+
print(
24+
f'Copy: {language_configuration} => {language_directory}')
25+
shutil.copy(language_configuration, language_directory)
26+
27+
28+
if __name__ == '__main__':
29+
main(sys.argv[1])

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-emacs-tab",
33
"displayName": "vscode-emacs-tab",
44
"description": "emacs like tab behavior",
5-
"version": "0.0.9",
5+
"version": "0.0.10",
66
"publisher": "garaemon",
77
"repository": {
88
"type": "git",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"comments":{"lineComment":";;"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[["{","}"],["[","]"],["(",")"],{"open":"\"","close":"\"","notIn":["string"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""]],"folding":{"offSide":true}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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-?]+%?|[@#!.])"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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":[["{","}"],["[","]"],["(",")"],["<",">"],["'","'"],["\"","\""],["`","`"]]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"comments":{"lineComment":"#","blockComment":["#"," "]},"brackets":[["{","}"],["[","]"],["(",")"]]}

0 commit comments

Comments
 (0)