Nov
DEC
Jan
06
2019
2020
2021
About this capture
Organization:
Archive Team
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
History is littered with hundreds of conflicts over the future of a community, group, location or business that were "resolved" when one of the parties stepped ahead and destroyed what was there. With the original point of contention destroyed, the debates would fall to the wayside. Archive Team believes that by duplicated condemned data, the conversation and debate can continue, as well as the richness and insight gained by keeping the materials. Our projects have ranged in size from a single volunteer downloading the data to a small-but-critical site, to over 100 volunteers stepping forward to acquire terabytes of user-created data to save for future generations.
The main site for Archive Team is at archiveteam.org and contains up to the date information on various projects, manifestos, plans and walkthroughs.
This collection contains the output of many Archive Team projects, both ongoing and completed. Thanks to the generous providing of disk space by the Internet Archive, multi-terabyte datasets can be made available, as well as in use by the Wayback Machine , providing a path back to lost websites and work.
Our collection has grown to the point of having sub-collections for the type of data we acquire. If you are seeking to browse the contents of these collections, the Wayback Machine is the best first stop. Otherwise, you are free to dig into the stacks to see what you may find.
The Archive Team Panic Downloads are full pulldowns of currently extant websites, meant to serve as emergency backups for needed sites that are in danger of closing, or which will be missed dearly if suddenly lost due to hard drive crashes or server failures.
This collection is a set of Github repository archives from two major sets: A panic grab upon the acquisition by Microsoft, and a larger, ongoing set of Pretty Much Everything.
T h e W a y b a c k M a c h i n e - h t t p : / / w e b . a r c h i v e . o r g / w e b / 2 0 2 0 1 2 0 6 0 8 0 8 5 5 / h t t p s : / / g i t h u b . c o m / M a g i c S t a c k / M a g i c P y t h o n
S k i p t o c o n t e n t
/ ; r e f _ c t a : S i g n u p ; r e f _ l o c : h e a d e r l o g g e d o u t " >
S i g n up
●
F e a t u r e s →
● C o d e r e v i e w
● P r o j e c t m a n a g e m e n t
● I n t e g r a t i o n s
● A c t i o n s
● P a c k a g e s
● S e c u r i t y
● T e a m m a n a g e m e n t
● H o s t i n g
● M o b i l e
● C u s t o m e r s t o r i e s →
● S e c u r i t y →
●
●
●
● E x p l o r e G i t H u b →
L e a r n & c o n t r i b u t e
● T o p i c s
● C o l l e c t i o n s
● T r e n d i n g
● L e a r n i n g L a b
● O p e n s o u r c e g u i d e s
C o n n e c t w i t h o t h e r s
● E v e n t s
● C o m m u n i t y f o r u m
● G i t H u b E d u c a t i o n
● G i t H u b S t a r s p r o g r a m
●
●
P l a n s →
● C o m p a r e p l a n s
● C o n t a c t S a l e s
● N o n p r o f i t →
● E d u c a t i o n →
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
{ { m e s s a g e } }
●
W a t c h
35
●
S t a r
1 . 2 k
●
F o r k
81
C u t t i n g e d g e P y t h o n s y n t a x h i g h l i g h t e r f o r S u b l i m e T e x t , A t o m a n d V i s u a l S t u d i o C o d e . U s e d b y G i t H u b t o h i g h l i g h t y o u r P y t h o n c o d e !
M I T L i c e n s e
1 . 2 k
s t a r s
81
f o r k s
S t a r
W a t c h
●
C o d e
●
I s s u e s
40
●
P u l l r e q u e s t s
1
●
A c t i o n s
●
P r o j e c t s
0
●
S e c u r i t y
●
I n s i g h t s
M o r e
●
C o d e
●
I s s u e s
●
P u l l r e q u e s t s
●
A c t i o n s
●
P r o j e c t s
●
S e c u r i t y
●
I n s i g h t s
D i s m i s s
J o i n G i t H u b t o d a y
G i t H u b i s h o m e t o o v e r 5 0 m i l l i o n d e v e l o p e r s w o r k i n g t o g e t h e r t o h o s t a n d r e v i e w c o d e , m a n a g e p r o j e c t s , a n d b u i l d s o f t w a r e t o g e t h e r .
S i g n u p
G i t H u b i s w h e r e t h e w o r l d b u i l d s s o f t w a r e
M i l l i o n s o f d e v e l o p e r s a n d c o m p a n i e s b u i l d , s h i p , a n d m a i n t a i n t h e i r s o f t w a r e o n G i t H u b — t h e l a r g e s t a n d m o s t a d v a n c e d d e v e l o p m e n t p l a t f o r m i n t h e w o r l d .
S i g n u p f o r f r e e
D i s m i s s
5
b r a n c h e s
82
t a g s
G o t o f i l e
C o d e
C l o n e
U s e G i t o r c h e c k o u t w i t h S V N u s i n g t h e w e b U R L .
W o r k f a s t w i t h o u r o f f i c i a l C L I .
L e a r n m o r e .
●
O p e n w i t h G i t H u b D e s k t o p
●
D o w n l o a d Z I P
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
G o b a c k
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
G o b a c k
L a u n c h i n g X c o d e
I f n o t h i n g h a p p e n s , d o w n l o a d X c o d e a n d t r y a g a i n .
G o b a c k
L a u n c h i n g V i s u a l S t u d i o
I f n o t h i n g h a p p e n s , d o w n l o a d t h e G i t H u b e x t e n s i o n f o r V i s u a l S t u d i o a n d t r y a g a i n .
G o b a c k
L a t e s t c o m m i t
e l p r a n s
a n d 1 s t 1
G i t h u b d o e s n ' t s e e m t o u s e M P f o r h i g h l i g h t e r t o k e n i z a t i o n
…
2 8 0 2 d e d
N o v 1 2 , 2 0 2 0
G i t h u b d o e s n ' t s e e m t o u s e M P f o r h i g h l i g h t e r t o k e n i z a t i o n
MagicPython is still used by Linguist, but the actual syntax
hightlighting seems to be driven by something else now. Thus, remove
the outdated statement from the README.
Closes : #225
2 8 0 2 d e d
G i t s t a t s
●
4 2 9
c o m m i t s
F i l e s
P e r m a l i n k
F a i l e d t o l o a d l a t e s t c o m m i t i n f o r m a t i o n .
T y p e
N a m e
L a t e s t c o m m i t m e s s a g e
C o m m i t t i m e
. g i t h u b
A d d I S S U E _ T E M P L A T E
A p r 2 2 , 2 0 1 6
g r a m m a r s
R e m o v e i n v a l i d f i r s t _ l i n e _ m a t c h k e y
J u l 3 1 , 2 0 2 0
m e s s a g e s
A d d m e s s a g e s f o r S T
O c t 1 9 , 2 0 1 5
m i s c
A d d s o m e m o r e s p e c i f i c s c o p e s f o r m e m b e r a c c e s s .
M a y 1 , 2 0 2 0
s e t t i n g s
M o d i f y f o l d E n d P a t t e r n
S e p 1 2 , 2 0 1 8
s n i p p e t s
C h a n g i n g T r y - E x c e p t . . . s n i p p e t s t o b e P y t h o n 3 s t y l e ( a s i n s t e a d o f , ) (
O c t 4 , 2 0 1 8
t e s t
F i x f o r l o o p h i g h l i g h t i n g # 2 1 1 ( # 2 1 2 )
M a y 1 8 , 2 0 2 0
. g i t i g n o r e
A d d s u p p o r t f o r n e w P y t h o n 3 . 7 a t t r s / b u i l t i n s
O c t 4 , 2 0 1 8
. t r a v i s . y m l
F i x t r a v i s - c i b u i l d . F i x e s # 9 3 .
J u l 1 9 , 2 0 1 7
A U T H O R S
A d d A U T H O R S f i l e
O c t 1 7 , 2 0 1 5
L I C E N S E
U p d a t e L I C E N S E
A p r 2 5 , 2 0 1 7
M a k e f i l e
A d d a n ` u p d a t e - t e s t ` m a k e t a r g e t .
O c t 2 2 , 2 0 1 9
R E A D M E . m d
G i t h u b d o e s n ' t s e e m t o u s e M P f o r h i g h l i g h t e r t o k e n i z a t i o n
N o v 1 2 , 2 0 2 0
i c o n . p n g
U s e a P N G i c o n f o r v s c o d e e x t e n s i o n s g a l l e r y
J u l 2 1 , 2 0 1 7
m e s s a g e s . j s o n
A d d m e s s a g e s f o r S T
O c t 1 9 , 2 0 1 5
p a c k a g e . j s o n
A d d s n a k e m a k e ( # 2 0 3 )
M a r 3 1 , 2 0 2 0
s u b l i m e . p y
s u b l i m e . p y : M e n t i o n D e f a u l t . s u b l i m e - k e y m a p
D e c 1 , 2 0 1 6
V i e w c o d e
R E A D M E . m d
M a g i c P y t h o n
T h i s i s a p a c k a g e w i t h p r e f e r e n c e s a n d s y n t a x h i g h l i g h t e r f o r c u t t i n g e d g e
P y t h o n 3 , a l t h o u g h P y t h o n 2 i s w e l l s u p p o r t e d , t o o . T h e s y n t a x i s c o m p a t i b l e
w i t h S u b l i m e T e x t , A t o m a n d
V i s u a l S t u d i o C o d e . I t i s m e a n t t o b e a d r o p - i n
r e p l a c e m e n t f o r t h e d e f a u l t P y t h o n p a c k a g e .
A t t e n t i o n V S C o d e u s e r s : M a g i c P y t h o n i s u s e d a s t h e d e f a u l t
P y t h o n h i g h l i g h t e r i n V i s u a l S t u d i o C o d e . D o n ' t i n s t a l l i t u n l e s s y o u
w a n t o r n e e d t h e c u t t i n g e d g e v e r s i o n o f i t . Y o u w i l l l i k e l y s e e n o
d i f f e r e n c e b e c a u s e y o u ' r e a l r e a d y u s i n g M a g i c P y t h o n .
M a g i c P y t h o n c o r r e c t l y h i g h l i g h t s a l l P y t h o n 3 s y n t a x f e a t u r e s ,
i n c l u d i n g t y p e a n n o t a t i o n s , f - s t r i n g s a n d r e g u l a r e x p r e s s i o n s . I t i s
b u i l t f r o m s c r a t c h f o r r o b u s t n e s s w i t h a n e x t e n s i v e t e s t s u i t e .
T y p e h i n t s i n c o m m e n t s r e q u i r e s u p p o r t b y t h e c o l o r s c h e m e . T h e o n e
u s e d i n t h e s c r e e n s h o t i s
C h r o m o d y n a m i c s .
I n s t a l l a t i o n I n s t r u c t i o n s
T h i s i s m e a n t t o b e a d r o p - i n r e p l a c e m e n t f o r t h e d e f a u l t P y t h o n p a c k a g e .
In A t o m , i n s t a l l t h e M a g i c P y t h o n p a c k a g e a n d d i s a b l e t h e b u i l t - i n
l a n g u a g e - p y t h o n p a c k a g e .
In S u b l i m e T e x t , i n s t a l l M a g i c P y t h o n p a c k a g e v i a " P a c k a g e C o n t r o l " a n d
d i s a b l e t h e b u i l t - i n P y t h o n p a c k a g e ( u s i n g
P a c k a g e C o n t r o l - > D i s a b l e P a c k a g e , o r d i r e c t l y b y a d d i n g " P y t h o n " to " i g n o r e d _ p a c k a g e s " i n t h e s e t t i n g s f i l e ) .
In V S C o d e , s t a r t i n g w i t h v e r s i o n 0 . 1 0 . 1 , i n s t a l l M a g i c P y t h o n w i t h
I n s t a l l E x t e n s i o n c o m m a n d .
A l t e r n a t i v e l y , t h e p a c k a g e c a n b e i n s t a l l e d m a n u a l l y i n a l l e d i t o r s :
● c o p y t h e M a g i c P y t h o n p a c k a g e i n t o t h e S u b l i m e / A t o m / V S C o d e u s e r p a c k a g e s
d i r e c t o r y ;
● d i s a b l e P y t h o n p a c k a g e ;
● e n j o y .
C h a n g e s a n d I m p r o v e m e n t s
T h e m a i n m o t i v a t i o n b e h i n d t h i s p a c k a g e w a s t h e d i f f i c u l t y o f u s i n g m o d e r n
P y t h o n w i t h o t h e r c o m m o n s y n t a x h i g h l i g h t e r s . T h e y d o a g o o d j o b o f t h e 9 0 % o f
t h e l a n g u a g e , b u t t h e n f a i l o n t h e n u a n c e s o f s o m e v e r y u s e f u l , b u t o f t e n
o v e r l o o k e d f e a t u r e s . F u n c t i o n a n n o t a t i o n s t e n d t o f r e a k o u t t h e h i g h l i g h t e r s i n
v a r i o u s w a y s . N e w l y i n t r o d u c e d k e y w o r d s a n d m a g i c m e t h o d s a r e s l o w t o b e
i n t e g r a t e d . A n o t h e r i s s u e i s s t r i n g h i g h l i g h t i n g , w h e r e a l l r a w s t r i n g s a r e
o f t e n a s s u m e d t o b e r e g u l a r e x p r e s s i o n s o r s p e c i a l m a r k u p u s e d b y . f o r m a t i s
c o m p l e t e l y i g n o r e d . B u m p i n g i n t o a l l o f t h e s e i s s u e s o n d a i l y b a s i s e v e n t u a l l y
l e d t o t h e c r e a t i o n o f t h i s p a c k a g e .
O v e r a l l , t h e c e n t r a l i d e a i s t h a t i t s h o u l d b e e a s y t o n o t i c e s o m e t h i n g o d d o r
s p e c i a l a b o u t t h e c o d e . O d d o r s p e c i a l d o e s n ' t n e c e s s a r i l y m e a n i n c o r r e c t , b u t
c e r t a i n l y w o r t h t h e e x p l i c i t a t t e n t i o n .
A n n o t a t i o n s
A n n o t a t i o n s s h o u l d n o t b r e a k t h e h i g h l i g h t i n g . T h e y s h o u l d b e n o m o r e d i f f i c u l t
t o r e a d a t a g l a n c e t h a n o t h e r c o d e o r c o m m e n t s .
A t y p i c a l c a s e i s h a v i n g a s t r i n g a n n o t a t i o n t h a t s p a n s s e v e r a l l i n e s b y u s i n g
i m p l i c i t s t r i n g c o n c a t e n a t i o n . M u l t i - l i n e s t r i n g s a r e s u b o p t i m a l f o r u s e i n
a n n o t a t i o n s a s i t m a y b e h i g h l y u n d e s i r a b l e t o h a v e o d d i n d e n t a t i o n a n d e x t r a
w h i t e s p a c e i n t h e a n n o t a t i o n s t r i n g . O f c o u r s e , t h e r e i s n o p r o b l e m u s i n g l i n e
c o n t i n u a t i o n o r e v e n h a v i n g c o m m e n t s m i x e d i n w i t h i m p l i c i t s t r i n g
c o n c a t e n a t i o n . A l l o f t h e s e w i l l b e h i g h l i g h t e d a s y o u ' d e x p e c t i n a n y o t h e r
p l a c e i n t h e c o d e .
def some_func (a , # nothing fancy here, yet
b : 'Annotation: ' # implicitly
'"foo" for Foo, ' # concatenated
'"bar" for Bar, ' # annotation
'"other" otherwise' = 'otherwise' ):
A m o r e a d v a n c e d u s e c a s e f o r a n n o t a t i o n s i s t o a c t u a l l y h a v e c o m p l e x e x p r e s s i o n s
i n t h e m , s u c h a s l a m b d a f u n c t i o n s , t u p l e s , l i s t s , d i c t s , s e t s , c o m p r e h e n s i o n s .
A d m i t t e d l y , a l l o f t h e s e m i g h t b e l e s s f r e q u e n t l y u s e d , b u t w h e n t h e y a r e , y o u
c a n r e l y o n t h e m b e i n g h i g h l i g h t e d n o r m a l l y i n a l l t h e i r g l o r i o u s d e t a i l s .
# no reason why this should cause the highlighter to break
#
def some_func (a :
# annotation starts here
lambda x = None :
{key : val
for key , val in
(x if x is not None else [])
}
# annotation ends here and below is the default for 'a'
= 42 ):
R e s u l t a n n o t a t i o n s a r e h a n d l e d a s a n y o t h e r e x p r e s s i o n w o u l d b e . N o r e a s o n t o
w o r r y t h a t t h e b o d y o f t h e f u n c t i o n w o u l d l o o k m e s s e d u p .
# no reason why this should cause the highlighter to break
#
def some_func () -> {
'Some' , # comments
'valid' , # are
'expression' # good
}:
S t r i n g s
S t r i n g s a r e u s e d i n m a n y d i f f e r e n t w a y s f o r p r o c e s s i n g a n d p r e s e n t i n g d a t a .
M a k i n g t h e h i g h l i g h t e r m o r e f r i e n d l y t o w a r d s t h e s e u s e s c a n h e l p y o u c o n c e n t r a t e
y o u r e f f o r t s o n w h a t m a t t e r s r a t h e r t h a n v i s u a l p a r s i n g .
R a w s t r i n g s a r e o f t e n i n t e r p r e t e d a s r e g u l a r e x p r e s s i o n s . T h i s i s a b i t o f a
p r o b l e m , b e c a u s e d e p e n d i n g o n t h e a p p l i c a t i o n t h i s m a y a c t u a l l y n o t b e t h e m o s t
c o m m o n c a s e . R a w s t r i n g s c a n s i m p l y b e t h e i n p u t t o s o m e o t h e r p r o c e s s o r , i n
w h i c h c a s e r e g e x p - s p e c i f i c h i g h l i g h t i n g i s r e a l l y h i n d e r i n g t h e o v e r a l l
r e a d a b i l i t y . M a g i c P y t h o n f o l l o w s a c o n v e n t i o n t h a t a l o w e r - c a s e r p r e f i x m e a n s
a r e g e x p s t r i n g , b u t a n u p p e r - c a s e R p r e f i x m e a n s j u s t a r a w s t r i n g w i t h n o
s p e c i a l r e g e x p s e m a n t i c s . T h i s c o n v e n t i o n h o l d s t r u e f o r a l l o f t h e l e g a l
c o m b i n a t i o n s o f p r e f i x e s . A s a l w a y s t h e s y n t a x i s b i a s e d t o w a r d s P y t h o n 3 , t h u s
i t w i l l m a r k P y t h o n - 2 - o n l y p r e f i x e s ( i . e . v a r i a t i o n s o f ur ) a s d e p r e c a t e d .
S t r i n g f o r m a t t i n g i s o f t e n o n l y s u p p o r t e d f o r ' % - s t y l e f o r m a t t i n g ' , h o w e v e r , t h e
r e c o m m e n d e d a n d m o r e r e a d a b l e s y n t a x u s e d b y . f o r m a t i s i g n o r e d . T h e b e n e f i t s
o f u s i n g s i m p l e a n d r e a d a b l e { k e y } r e p l a c e m e n t f i e l d s a r e h i n d e r e d b y t h e f a c t
t h a t i n a c o m p l e x o r l o n g s t r i n g e x p r e s s i o n i t m a y n o t b e e a s i l y a p p a r e n t w h a t
p a r a m e t e r s w i l l a c t u a l l y b e n e e d e d b y . f o r m a t . T h i s i s w h y M a g i c P y t h o n
h i g h l i g h t s b o t h k i n d s o f s t r i n g f o r m a t t i n g s y n t a x w i t h i n t h e a p p r o p r i a t e s t r i n g
t y p e s ( b y t e s d o n ' t h a v e a . f o r m a t m e t h o d i n P y t h o n 3 , s o t h e y d o n ' t g e t t h e
s p e c i a l h i g h l i g h t i n g f o r i t , r a w a n d u n i c o d e s t r i n g s d o ) . A d d i t i o n a l l y , t h e
h i g h l i g h t e r a l s o v a l i d a t e s t h a t t h e f o r m a t t i n g i s f o l l o w i n g t h e c o r r e c t s y n t a x .
I t c a n h e l p n o t i c i n g a n e r r o r i n c o m p l e x f o r m a t t i n g e x p r e s s i o n s e a r l y .
P y t h o n 3 . 6 f - s t r i n g s a r e s u p p o r t e d i n b o t h t h e r a w a n d r e g u l a r
f l a v o r s . T h e s u p p o r t f o r t h e m i s s o m e w h a t m o r e p o w e r f u l t h a n w h a t c a n
b e d o n e i n r e g u l a r s t r i n g s w i t h . f o r m a t , b e c a u s e t h e f - s t r i n g s p e c
a l l o w s t o h i g h l i g h t t h e m w i t h l e s s a m b i g u i t y .
N u m e r i c l i t e r a l s
M o s t n u m b e r s a r e j u s t r e g u l a r d e c i m a l c o n s t a n t s , b u t a n y t i m e t h a t o c t a l ,
b i n a r y , h e x a d e c i m a l o r c o m p l e x n u m b e r s a r e u s e d i t ' s w o r t h n o t i n g t h a t t h e y a r e
o f a s p e c i a l t y p e . H i g h l i g h t i n g o f P y t h o n 2 ' L ' i n t e g e r s i s a l s o s u p p o r t e d .
U n d e r s c o r e s i n n u m e r i c l i t e r a l s a r e a l s o s u p p o r t e d ( P E P 5 1 5 , i n t r o d u c e d i n
P y t h o n 3 . 6 ) :
100_000_000_000 0b_1110_0101 0x_FF_12_A0_99
P y t h o n 3 . 5 f e a t u r e s
N e w k e y w o r d s a s y n c a n d a w a i t a r e p r o p e r l y h i g h l i g h t e d . C u r r e n t l y , t h e s e
k e y w o r d s a r e n e w a n d a r e n o t y e t r e s e r v e d , s o t h e P y t h o n i n t e r p r e t e r w i l l a l l o w
u s i n g t h e m a s v a r i a b l e n a m e s . H o w e v e r , a s y n c a n d a w a i t a r e n o t r e c o m m e n d e d
t o b e u s e d a s v a r i a b l e , c l a s s , f u n c t i o n o r m o d u l e n a m e s . I n t r o d u c e d b y
P E P 4 9 2 i n P y t h o n 3 . 5 , t h e y w i l l
b e c o m e p r o p e r k e y w o r d s i n P y t h o n 3 . 7 . I t i s v e r y i m p o r t a n t t h a t t h e h i g h l i g h t e r
s h o w s t h e i r p r o p e r s t a t u s w h e n t h e y a r e u s e d a s f u n c t i o n p a r a m e t e r n a m e s , a s
t h a t c o u l d o t h e r w i s e b e u n n o t i c e d a n d l e a d t o v e r y m e s s y d e b u g g i n g d o w n t h e
r o a d .
B u i l t - i n s a n d M a g i c M e t h o d s
V a r i o u s b u i l t - i n t y p e s , c l a s s e s , f u n c t i o n s , a s w e l l a s m a g i c m e t h o d s a r e a l l
h i g h l i g h t e d . S p e c i f i c a l l y , t h e y a r e h i g h l i g h t e d w h e n t h e y a p p e a r a s n a m e s i n
u s e r d e f i n i t i o n s . A l t h o u g h i t i s n o t a n e r r o r t o h a v e c l a s s e s a n d f u n c t i o n s t h a t
m a s k t h e b u i l t - i n s , i t i s c e r t a i n l y w o r t h d r a w i n g a t t e n t i o n t o , s o t h a t m a s k i n g
b e c o m e s a d e l i b e r a t e r a t h e r t h a n a c c i d e n t a l a c t .
H i g h l i g h t i n g b u i l t - i n s i n c l a s s i n h e r i t a n c e l i s t m a k e s i t s l i g h t l y m o r e o b v i o u s
w h e r e s t a n d a r d c l a s s e s a r e e x t e n d e d . I t i s a l s o e a s i e r t o n o t i c e s o m e t y p o s
( h a v e y o u e v e r t y p e d E x c e p i t o n ? ) a l i t t l e e a r l i e r .
P a r a m e t e r s a n d A r g u m e n t s
M a g i c P y t h o n h i g h l i g h t s k e y w o r d s w h e n t h e y a r e u s e d a s p a r a m e t e r / a r g u m e n t n a m e s .
T h i s w a s m e n t i o n e d f o r t h e c a s e o f a s y n c a n d a w a i t , b u t i t h o l d s t r u e f o r
a l l o t h e r k e y w o r d s . A l t h o u g h t h e P y t h o n i n t e r p r e t e r w i l l p r o d u c e a n a p p r o p r i a t e
e r r o r m e s s a g e w h e n r e s e r v e d k e y w o r d s a r e u s e d a s i d e n t i f i e r n a m e s , i t ' s s t i l l
w o r t h s h o w i n g t h e m e a r l y , t o s p a r e e v e n t h i s s m a l l d e b u g g i n g e f f o r t .
D e v e l o p m e n t
Y o u n e e d n p m a n d n o d e . j s t o w o r k o n M a g i c P y t h o n .
● c l o n e t h e r e p o s i t o r y
● r u n m a k e t o b u i l d t h e l o c a l d e v e l o p m e n t e n v i r o n m e n t
● r u n m a k e r e l e a s e t o b u i l d t h e s y n t a x p a c k a g e s f o r S u b l i m e T e x t a n d A t o m
( r u n n i n g m a k e t e s t a l s o g e n e r a t e s t h e " r e l e a s e " p a c k a g e s )
P l e a s e n o t e t h a t w e h a v e s o m e u n i t t e s t s f o r t h e s y n t a x s c o p i n g . W e w i l l b e
e x p a n d i n g a n d u p d a t i n g o u r t e s t c o r p u s . T h i s a l l o w s u s t o t r u s t t h a t t i n y
i n c o n s i s t e n c i e s w i l l n o t e a s i l y c r e e p i n a s w e u p d a t e t h e s y n t a x a n d f i x b u g s .
U s e m a k e t e s t t o r u n t h e t e s t s r e g u l a r l y w h i l e u p d a t i n g t h e s y n t a x s p e c .
C u r r e n t l y t h e t e s t f i l e s h a v e t w o p a r t s t o t h e m , s e p a r a t e d b y 3 e m p t y n e w l i n e s :
t h e c o d e t o b e s c o p e d a n d t h e s p e c t h a t t h e r e s u l t m u s t m a t c h .
I f y o u i n t e n d t o s u b m i t a p u l l r e q u e s t , p l e a s e f o l l o w t h e f o l l o w i n g g u i d e l i n e s :
k e e p c o d e l i n e s u n d e r 8 0 c h a r a c t e r s i n l e n g t h , i t i m p r o v e s r e a d a b i l i t y
p l e a s e do u s e m u l t i - l i n e r e g u l a r e x p r e s s i o n s f o r a n y n o n - t r i v i a l c a s e s l i k e :
● t h e r e g e x p c o n t a i n s a m i x o f e s c a p e d a n d u n e s c a p e d b r a c e s / p a r e n t h e s e s
● t h e r e g e x p h a s s e v e r a l | i n i t
● t h e r e g e x p h a s s e v e r a l p a i r s o f p a r e n t h e s e s , e s p e c i a l l y n e s t e d o n e s
● o r t h e r e g e x p i s s i m p l y l o n g e r t h a n 3 5 c h a r a c t e r s
a l w a y s r u n m a k e t e s t t o e n s u r e t h a t y o u r c h a n g e s d i d n ' t h a v e u n e x p e c t e d s i d e
e f f e c t s
u p d a t e u n i t t e s t s a n d a d d n e w o n e s i f n e e d e d , k e e p i n g t h e t e s t c a s e s s h o r t
w h e n e v e r p o s s i b l e
M u l t i p l e s c o p e s
I t i s s o m e t i m e s n e c e s s a r y t o a s s i g n m u l t i p l e s c o p e s t o t h e s a m e
m a t c h e d g r o u p . I t i s v e r y i m p o r t a n t t o k e e p i n m i n d t h a t t h e o r d e r
o f t h e s e s c o p e s i s a p p a r e n t l y t r e a t e d a s s i g n i f i c a n t b y t h e e n g i n e s
p r o c e s s i n g t h e g r a m m a r s p e c s . H o w e v e r , i t i s e q u a l l y i m p o r t a n t t o k n o w
t h a t d i f f e r e n t s p e c i f i c a t i o n f o r m a t s s e e m t o h a v e d i f f e r e n t o r d e r o f
i m p o r t a n c e ( m o s t i m p o r t a n t f i r s t v s . l a s t ) . S i n c e w e t r y t o c r e a t e
g r a m m a r t h a t c a n b e c o m p i l e d i n t o s e v e r a l d i f f e r e n t f o r m a t s , w e m u s t
c h o s e o n e c o n v e n t i o n a n d t h e n t r a n s l a t e i t w h e n n e c e s s a r y d u r i n g
c o m p i l a t i o n s t e p . O u r c o n v e n t i o n i s t h e r e f o r e t h a t m o s t i m p o r t a n t
s c o p e g o e s f i r s t .
C o l o r S c h e m e
I f y o u w a n t t o w r i t e y o u r o w n c o l o r s c h e m e f o r M a g i c P y t h o n y o u c a n
f i n d a l i s t o f a l l t h e s c o p e s t h a t w e u s e i n
m i s c / s c o p e s . T h e f i l e i s a u t o m a t i c a l l y g e n e r a t e d b a s e d
o n t h e s y n t a x g r a m m a r , s o i t i s a l w a y s u p - t o - d a t e a n d e x h a u s t i v e .
A b o u t
C u t t i n g e d g e P y t h o n s y n t a x h i g h l i g h t e r f o r S u b l i m e T e x t , A t o m a n d V i s u a l S t u d i o C o d e . U s e d b y G i t H u b t o h i g h l i g h t y o u r P y t h o n c o d e !
T o p i c s
s y n t a x - h i g h l i g h t e r
p y t h o n
a t o m
v i s u a l - s t u d i o - c o d e
s u b l i m e - t e x t - 3
p y t h o n - 3
R e s o u r c e s
R e a d m e
L i c e n s e
M I T L i c e n s e
v 1 . 1 . 0
L a t e s t
O c t 4 , 2 0 1 8
+ 8 1 r e l e a s e s
N o p a c k a g e s p u b l i s h e d
+ 5 c o n t r i b u t o r s
L a n g u a g e s
●
J a v a S c r i p t
6 6 . 1 %
●
P y t h o n
3 2 . 9 %
●
O t h e r
1 . 0 %
● © 2 0 2 0 G i t H u b , I n c .
● T e r m s
● P r i v a c y
●
C o o k i e P r e f e r e n c e s
● S e c u r i t y
● S t a t u s
● H e l p
● C o n t a c t G i t H u b
● P r i c i n g
● A P I
● T r a i n i n g
● B l o g
● A b o u t
Y o u c a n ’ t p e r f o r m t h a t a c t i o n a t t h i s t i m e .
Y o u s i g n e d i n w i t h a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .
Y o u s i g n e d o u t i n a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .
W e u s e o p t i o n a l t h i r d - p a r t y a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e G i t H u b . c o m s o w e c a n b u i l d b e t t e r p r o d u c t s .
L e a r n m o r e .
A c c e p t
R e j e c t
W e u s e o p t i o n a l t h i r d - p a r t y a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e G i t H u b . c o m s o w e c a n b u i l d b e t t e r p r o d u c t s .
Y o u c a n a l w a y s u p d a t e y o u r s e l e c t i o n b y c l i c k i n g C o o k i e P r e f e r e n c e s a t t h e b o t t o m o f t h e p a g e .
F o r m o r e i n f o r m a t i o n , s e e o u r P r i v a c y S t a t e m e n t .
E s s e n t i a l c o o k i e s
W e u s e e s s e n t i a l c o o k i e s t o p e r f o r m e s s e n t i a l w e b s i t e f u n c t i o n s , e . g . t h e y ' r e u s e d t o l o g y o u i n .
L e a r n m o r e
A l w a y s a c t i v e
A n a l y t i c s c o o k i e s
W e u s e a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e o u r w e b s i t e s s o w e c a n m a k e t h e m b e t t e r , e . g . t h e y ' r e u s e d t o g a t h e r i n f o r m a t i o n a b o u t t h e p a g e s y o u v i s i t a n d h o w m a n y c l i c k s y o u n e e d t o a c c o m p l i s h a t a s k .
L e a r n m o r e
A c c e p t
R e j e c t
S a v e p r e f e r e n c e s