Skip to content

Commit

Permalink
Merge pull request #3 from virgilwashere/file-types
Browse files Browse the repository at this point in the history
🔧 add file associations for nginx language
  • Loading branch information
william-voyek authored May 13, 2019
2 parents ac6e98b + 75c7837 commit 75602f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
"engines": {
"vscode": "^1.32.0"
},
"repository": {
"type": "GitHub",
"url": "https://github.com/william-voyek/vscode-nginx"
},
"repository": {
"type": "GitHub",
"url": "https://github.com/william-voyek/vscode-nginx"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [{
"id": "nginx",
"aliases": ["NGINX Conf", "nginx"],
"extensions": [".conf",".nginx"],
"extensions": ["nginx.conf", ".conf", ".nginx"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
Expand Down
10 changes: 9 additions & 1 deletion syntaxes/nginx.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"fileTypes": [
"conf",
"nginx"
"nginx",
"nginx.conf",
"mime.type",
"fastcgi_params",
"proxy_params",
"scgi_params",
"uwsgi_params",
"fastcgi-php.conf",
"fastcgi.conf"
],
"foldingStartMarker": "\\{\\s*$",
"foldingStopMarker": "^\\s*\\}",
Expand Down

0 comments on commit 75602f5

Please sign in to comment.