package.json 1.1 KB
Newer Older
E
Erich Gamma 已提交
1 2
{
	"name": "php",
3 4
	"displayName": "%displayName%",
	"description": "%description%",
5
	"version": "1.0.0",
E
Erich Gamma 已提交
6
	"publisher": "vscode",
7
	"license": "MIT",
8 9 10
	"engines": {
		"vscode": "0.10.x"
	},
E
Erich Gamma 已提交
11
	"contributes": {
12 13 14 15 16 17 18 19 20 21 22 23 24 25
		"languages": [
			{
				"id": "php",
				"extensions": [
					".php",
					".php4",
					".php5",
					".phtml",
					".ctp"
				],
				"aliases": [
					"PHP",
					"php"
				],
26
				"firstLine": "^#!\\s*/.*\\bphp\\b",
27 28 29 30 31 32 33
				"mimetypes": [
					"application/x-php"
				],
				"configuration": "./language-configuration.json"
			}
		],
		"grammars": [
R
Rob Lourens 已提交
34 35 36 37 38
			{
				"language": "php",
				"scopeName": "source.php",
				"path": "./syntaxes/php.tmLanguage.json"
			},
39 40 41
			{
				"language": "php",
				"scopeName": "text.html.php",
R
Rob Lourens 已提交
42
				"path": "./syntaxes/html.tmLanguage.json",
43 44 45 46 47 48 49 50 51 52 53 54 55 56
				"embeddedLanguages": {
					"text.html": "html",
					"source.php": "php",
					"source.sql": "sql",
					"text.xml": "xml",
					"source.js": "javascript",
					"source.json": "json",
					"source.css": "css"
				}
			}
		],
		"snippets": [
			{
				"language": "php",
57
				"path": "./snippets/php.code-snippets"
58
			}
R
Rob Lourens 已提交
59
		]
E
Erich Gamma 已提交
60 61
	},
	"scripts": {
62
		"update-grammar": "node ./build/update-grammar.js"
E
Erich Gamma 已提交
63
	}
64
}