Skip to content

Commit 117ebad

Browse files
committed
initial commit
0 parents  commit 117ebad

File tree

7 files changed

+163
-0
lines changed

7 files changed

+163
-0
lines changed

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// A launch configuration that launches the extension inside a new window
2+
{
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
11+
}
12+
]
13+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
## [0.0.2] - 2017-02-14
4+
- Updated CHANGELOG.md
5+
- Created GitHub Repository
6+
7+
## [0.0.1] - 2017-02-14
8+
- Initial release

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Git Config Language
2+
3+
This extension is a VS Code port of [this GitHub repository](https://github.com/lifted-studios/Gitconfig.tmLanguage).
4+
I claim no rights nor ownership
5+
6+
## Features
7+
8+
Syntax highlighting for `.gitconfig`, `.gitattributes`, and `.gitmodules` files.
9+
10+
## Release Notes
11+
12+
See `CHANGELOG.md` for more in-depth notes.
13+
14+
### `0.0.2`
15+
16+
Adds GitHub repository and `CHANGELOG.md`
17+
18+
### `0.0.1`
19+
20+
Initial release

debug.log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[0214/103939:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6004
2+
[0214/103939:ERROR:node_debugger.cc(86)] Cannot start debugger server

language-configuration.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "/*", "*/" ]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
["'", "'"]
21+
],
22+
// symbols that that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
]
30+
}

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "gitconfig",
3+
"displayName": "Gitconfig Syntax",
4+
"description": "Adds syntax highlighting support for Git config files",
5+
"version": "0.0.1",
6+
"publisher": "sidneys1",
7+
"engines": {
8+
"vscode": "^1.5.0"
9+
},
10+
"categories": [
11+
"Languages"
12+
],
13+
"contributes": {
14+
"languages": [{
15+
"id": "gitconfig",
16+
"aliases": ["Git Config", "gitconfig"],
17+
"extensions": [".gitconfig",".gitmodules",".gitattributes"],
18+
"configuration": "./language-configuration.json"
19+
}],
20+
"grammars": [{
21+
"language": "gitconfig",
22+
"scopeName": "text.gitconfig",
23+
"path": "./syntaxes/Gitconfig.tmLanguage"
24+
}]
25+
}
26+
}

syntaxes/Gitconfig.tmLanguage

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>fileTypes</key>
6+
<array>
7+
<string>.gitconfig</string>
8+
</array>
9+
<key>name</key>
10+
<string>Gitconfig</string>
11+
<key>patterns</key>
12+
<array>
13+
<dict>
14+
<key>captures</key>
15+
<dict>
16+
<key>1</key>
17+
<dict>
18+
<key>name</key>
19+
<string>string.gitconfig</string>
20+
</dict>
21+
</dict>
22+
<key>comment</key>
23+
<string>Section headings</string>
24+
<key>match</key>
25+
<string>^\[[^]"]*("\w+")?\]</string>
26+
<key>name</key>
27+
<string>entity.gitconfig</string>
28+
</dict>
29+
<dict>
30+
<key>captures</key>
31+
<dict>
32+
<key>1</key>
33+
<dict>
34+
<key>name</key>
35+
<string>storage.gitconfig</string>
36+
</dict>
37+
<key>2</key>
38+
<dict>
39+
<key>name</key>
40+
<string>string.gitconfig</string>
41+
</dict>
42+
</dict>
43+
<key>comment</key>
44+
<string>Setting</string>
45+
<key>match</key>
46+
<string>([^=]+)\s*=\s*([^#]*)</string>
47+
<key>name</key>
48+
<string>support.gitconfig</string>
49+
</dict>
50+
<dict>
51+
<key>comment</key>
52+
<string>Comments</string>
53+
<key>match</key>
54+
<string>#.*</string>
55+
<key>name</key>
56+
<string>comment.gitconfig</string>
57+
</dict>
58+
</array>
59+
<key>scopeName</key>
60+
<string>text.gitconfig</string>
61+
<key>uuid</key>
62+
<string>ad48b2c7-9203-47d5-85ea-e41fe7705971</string>
63+
</dict>
64+
</plist>

0 commit comments

Comments
 (0)