update components
This commit is contained in:
@@ -7,7 +7,10 @@ Prism.languages.python= {
|
||||
pattern: /(^|[^\\])#.*/,
|
||||
lookbehind: true
|
||||
},
|
||||
'string': /("|')(?:\\?.)*?\1/,
|
||||
'string': {
|
||||
pattern: /("|')(?:\\\\|\\?[^\\\r\n])*?\1/,
|
||||
greedy: true
|
||||
},
|
||||
'function' : {
|
||||
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,
|
||||
lookbehind: true
|
||||
|
||||
Reference in New Issue
Block a user