-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
117 lines (117 loc) · 3.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "vscode-python-fstring-dsl",
"publisher": "jkmnt",
"version": "0.1.1",
"engines": {
"vscode": "^1.22.0"
},
"license": "MIT",
"displayName": "Highlight f-strings",
"icon": "icon.png",
"description": "Python - highlight HTML, SQL, JS, CSS in f-strings",
"categories": [
"Programming Languages",
"Themes"
],
"keywords": [
"f-strings",
"fstrings",
"python",
"template",
"literal",
"htmf",
"syntax",
"highlighting",
"html",
"sql"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "python-fstring-dsl.generate_grammar",
"category": "Highlight f-strings",
"title": "Generate grammar"
}
],
"languages": [
{
"id": "inlinesql",
"configuration": "./inline-sql.configuration.json"
}
],
"grammars": [
{
"language": "inlinesql",
"scopeName": "source.sql.inline",
"path": "./syntaxes/sql.tmLanguage.json"
},
{
"injectTo": [
"source.python"
],
"scopeName": "embed-in-python",
"path": "./syntaxes/embed-in-python.json",
"embeddedLanguages": {
"meta.embedded.inline.sql": "sql",
"meta.embedded.inline.html": "html",
"meta.embedded.inline.css": "css",
"meta.embedded.inline.js": "javascript"
}
},
{
"injectTo": [
"source.python"
],
"scopeName": "embed-in-embedded-html",
"path": "./syntaxes/embed-in-embedded-html.json",
"embeddedLanguages": {
"meta.embedded.inline.f-expression.python": "python"
}
},
{
"injectTo": [
"source.python"
],
"scopeName": "embed-in-embedded-sql",
"path": "./syntaxes/embed-in-embedded-sql.json",
"embeddedLanguages": {
"meta.embedded.inline.f-expression.python": "python"
}
}
],
"configuration": {
"title": "Highlight f-strings",
"properties": {
"python-fstring-dsl.grammar.triggers": {
"type": "object",
"default": {
"sql": "sql",
"html": "html|htmf\\.m|htmf\\.markup|htmf\\.document|ht\\.m|ht\\.markup|ht\\.document",
"css": "css|htmf\\.style|htmf\\.stylesheet|ht\\.style|ht\\.stylesheet",
"js": "js|htmf\\.handler|htmf\\.script|ht\\.handler|ht\\.script"
},
"markdownDescription": "Function names (regex) to trigger the syntax highlight.\nOnly `html`, `sql`, `css`, `js` are supported.\n\nE.g.: `{\"html\":\"html|template\\.render\", \"css\":\"minify_css\", \"sql\":false}`\n\nRun **Highlight f-string: Generate grammar** command to apply changes."
}
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/jkmnt/vscode-python-fstring-dsl"
},
"scripts": {
"compile": "tsc -p .",
"grammar": "node build.js",
"build": "npm run compile && npm run grammar",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^18.14.0",
"typescript": "^4.2.4",
"vscode": "^1.0.0"
}
}