Skip to content

Commit 05f7c7b

Browse files
committedDec 16, 2016
Recognize .wsgi as Python files (closes #66)
Original patch by @luca76.
1 parent d96126f commit 05f7c7b

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
@@ -14,6 +14,7 @@ fileTypes: [
1414
"SConscript"
1515
"gyp"
1616
"gypi"
17+
"wsgi"
1718
]
1819
first_line_match: "^#!/.*\\bpython[\\d\\.]*\\b"
1920
firstLineMatch: "^#!/.*\\bpython[\\d\\.]*\\b"

‎grammars/MagicPython.tmLanguage

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<string>SConscript</string>
2222
<string>gyp</string>
2323
<string>gypi</string>
24+
<string>wsgi</string>
2425
</array>
2526
<key>first_line_match</key>
2627
<string>^#!/.*\bpython[\d\.]*\b</string>

‎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]
7+
gyp, gypi, wsgi]
88
first_line_match: ^#!/.*\bpython[\d\.]*\b
99
firstLineMatch: ^#!/.*\bpython[\d\.]*\b
1010
uuid: 742deb57-6e38-4192-bed6-410746efd85d

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
".sconstruct",
5555
".SConscript",
5656
".gyp",
57-
".gypi"
57+
".gypi",
58+
".wsgi"
5859
]
5960
}
6061
],

0 commit comments

Comments
 (0)
Please sign in to comment.