Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add .smk extension to support Snakemake files like language-python do…
…es (resolves #202)
  • Loading branch information
goi42 committed Mar 25, 2020
commit 7949c10a737e9c3e304be4c6e6ffd74cd77da257
1 change: 1 addition & 0 deletions grammars/MagicPython.cson
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fileTypes: [
"wsgi"
"kv"
"Snakefile"
"smk"
"tac"
]
first_line_match: "^#![ \\t]*/.*\\bpython[\\d\\.]*\\b"
Expand Down
1 change: 1 addition & 0 deletions grammars/MagicPython.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<string>wsgi</string>
<string>kv</string>
<string>Snakefile</string>
<string>smk</string>
<string>tac</string>
</array>
<key>first_line_match</key>
Expand Down
2 changes: 1 addition & 1 deletion grammars/src/MagicPython.syntax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ scopeName: source.python
# NOTE: remember to update package.json with VSCode file types.
fileTypes: [py, py3, rpy, pyw, cpy, pyi,
SConstruct, Sconstruct, sconstruct, SConscript,
gyp, gypi, wsgi, kv, Snakefile, tac]
gyp, gypi, wsgi, kv, Snakefile, smk, tac]
first_line_match: ^#![ \t]*/.*\bpython[\d\.]*\b
firstLineMatch: ^#![ \t]*/.*\bpython[\d\.]*\b
uuid: 742deb57-6e38-4192-bed6-410746efd85d
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
".wsgi",
".kv",
"Snakefile",
".tac",
".smk",
".tac"
]
}
],
Expand Down