Skip to content

Commit 7949c10

Browse files
committed
add .smk extension to support Snakemake files like language-python does (resolves MagicStack#202)
1 parent c0d4828 commit 7949c10

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

grammars/MagicPython.cson

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fileTypes: [
1717
"wsgi"
1818
"kv"
1919
"Snakefile"
20+
"smk"
2021
"tac"
2122
]
2223
first_line_match: "^#![ \\t]*/.*\\bpython[\\d\\.]*\\b"

grammars/MagicPython.tmLanguage

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<string>wsgi</string>
2525
<string>kv</string>
2626
<string>Snakefile</string>
27+
<string>smk</string>
2728
<string>tac</string>
2829
</array>
2930
<key>first_line_match</key>

grammars/src/MagicPython.syntax.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scopeName: source.python
44
# NOTE: remember to update package.json with VSCode file types.
55
fileTypes: [py, py3, rpy, pyw, cpy, pyi,
66
SConstruct, Sconstruct, sconstruct, SConscript,
7-
gyp, gypi, wsgi, kv, Snakefile, tac]
7+
gyp, gypi, wsgi, kv, Snakefile, smk, tac]
88
first_line_match: ^#![ \t]*/.*\bpython[\d\.]*\b
99
firstLineMatch: ^#![ \t]*/.*\bpython[\d\.]*\b
1010
uuid: 742deb57-6e38-4192-bed6-410746efd85d

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
".wsgi",
5959
".kv",
6060
"Snakefile",
61-
".tac",
61+
".smk",
62+
".tac"
6263
]
6364
}
6465
],

0 commit comments

Comments
 (0)