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