File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11Prism . languages . pluto = {
22 'comment' : / ^ # ! .+ | - - (?: \[ ( = * ) \[ [ \s \S ] * ?\] \1\] | .* ) / m,
3- 'function' : / \b (? ! i n \s ) (? ! \d ) (? ! r e t u r n ) (? ! c a s e ) \w + (? = \s * (?: [ ( { " ] ) ) / ,
3+ 'attr-name' : / (?< = ( f u n c t i o n | c l a s s | e x t e n d s ) \s ) [ \w : ] + / ,
4+ 'function' : [
5+ / \b (? ! i n \s ) (? ! \d ) (? ! r e t u r n ) (? ! c a s e ) (? ! f u n c t i o n ) (? ! l o c a l ) \w + (? = \s * (?: [ ( { " ] ) ) / ,
6+ / \b ( f u n c t i o n | e n u m | c l a s s ) \b / ,
7+ / \b ( d e b u g | t a b l e | s t r i n g | n u m b e r | i o | o s | c o r o u t i n e | _ V E R S I O N | _ P V E R S I O N | _ P S O U P ) \b / , // standard library + type hints
8+ ] ,
9+ 'attr-value' : / < ( c o n s t | c o n s t e x p r | c l o s e ) > / ,
410 'string' : {
511 pattern : / ( [ " ' ] ) (?: (? ! \1) [ ^ \\ \r \n ] | \\ z (?: \r \n | \s ) | \\ (?: \r \n | [ ^ z ] ) ) * \1| \[ ( = * ) \[ [ \s \S ] * ?\] \2\] / ,
612 greedy : true
@@ -16,6 +22,6 @@ Prism.languages.pluto = {
1622 lookbehind : true
1723 }
1824 ] ,
19- 'constant' : / ( n i l | \. \. \. | _ V E R S I O N | _ P V E R S I O N | _ P S O U P ) / ,
20- 'punctuation' : / [ \[ \] ( ) { } , ; ] | \. + | : + /
25+ 'constant' : / ( n i l | \. \. \. ) / ,
26+ 'punctuation' : / [ \[ \] ( ) { } , ; ] | \. + | : + / ,
2127} ;
You can’t perform that action at this time.
0 commit comments