Skip to content

Commit 0efd330

Browse files
authored
Merge pull request #6 from vantaboard/feat/coconut-support
feat(added-support-for-use-with-coconut): coconut is awesome
2 parents dc9a194 + b2174a0 commit 0efd330

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python-string-sql",
33
"displayName": "python-string-sql",
44
"description": "highlight python strings as sql",
5-
"version": "1.1.0",
5+
"version": "1.2.0",
66
"publisher": "ptweir",
77
"icon": "docs/logo.png",
88
"repository": {
@@ -21,7 +21,8 @@
2121
"path": "./syntaxes/highlight-sql-string.json",
2222
"scopeName": "python-sql.injection",
2323
"injectTo": [
24-
"source.python"
24+
"source.python",
25+
"source.coconut"
2526
],
2627
"embeddedLanguages": {
2728
"meta.embedded.sql": "sql"
@@ -31,7 +32,8 @@
3132
"path": "./syntaxes/highlight-html-string.json",
3233
"scopeName": "python-html.injection",
3334
"injectTo": [
34-
"source.python"
35+
"source.python",
36+
"source.coconut"
3537
],
3638
"embeddedLanguages": {
3739
"meta.embedded.block.html": "html"
@@ -51,7 +53,7 @@
5153
"mac": "ctrl+s",
5254
"when": "editorTextFocus",
5355
"args": {
54-
"langId": "python",
56+
"langId": ["python", "coconut"],
5557
"name": "SQL_highlighted_string"
5658
}
5759
}

syntaxes/highlight-html-string.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"fileTypes": [
3-
"py"
3+
"py",
4+
"coc",
5+
"coco",
6+
"coconut"
47
],
58
"injectionSelector": "L:string.quoted.multi.python, L:meta.fstring.python - (comment.line.number-sign.python, punctuation.definition.comment.python)",
69
"repository": {
@@ -54,4 +57,4 @@
5457
}
5558
],
5659
"scopeName": "python-html.injection"
57-
}
60+
}

syntaxes/highlight-sql-string.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"fileTypes": [
3-
"py"
3+
"py",
4+
"coc",
5+
"coco",
6+
"coconut"
47
],
58
"injectionSelector": "L:string.quoted.multi.python, L:meta.fstring.python - (comment.line.number-sign.python, punctuation.definition.comment.python)",
69
"patterns": [

0 commit comments

Comments
 (0)