Skip to content

Commit 37b660d

Browse files
committed
Add gyp & gypi support properly
1 parent f865416 commit 37b660d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

grammars/MagicPython.cson

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ fileTypes: [
1111
"Sconstruct"
1212
"sconstruct"
1313
"SConscript"
14+
"gyp"
15+
"gypi"
1416
]
1517
first_line_match: "^#!/.*\\bpython[\\d\\.]*\\b"
1618
firstLineMatch: "^#!/.*\\bpython[\\d\\.]*\\b"

grammars/MagicPython.tmLanguage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<string>Sconstruct</string>
1919
<string>sconstruct</string>
2020
<string>SConscript</string>
21+
<string>gyp</string>
22+
<string>gypi</string>
2123
</array>
2224
<key>first_line_match</key>
2325
<string>^#!/.*\bpython[\d\.]*\b</string>

grammars/src/MagicPython.syntax.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: MagicPython
33
scopeName: source.python
4-
fileTypes: [py, py3, rpy, pyw, cpy, SConstruct, Sconstruct, sconstruct, SConscript]
4+
fileTypes: [py, py3, rpy, pyw, cpy, SConstruct,
5+
Sconstruct, sconstruct, SConscript,
6+
gyp, gypi]
57
first_line_match: ^#!/.*\bpython[\d\.]*\b
68
firstLineMatch: ^#!/.*\bpython[\d\.]*\b
79
uuid: 742deb57-6e38-4192-bed6-410746efd85d

0 commit comments

Comments
 (0)