diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2020-05-19 11:23:00 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2020-05-19 11:23:28 -0400 |
| commit | 9e20ebaac658add3878ed7d070a1ef6d4a5927a7 (patch) | |
| tree | 768482ccff831ca444ba980d7a26cd931096ab7a /docs/python.min.js | |
| parent | f4a6890da148a51d8f0aaa3790dd25cdc00bd4db (diff) | |
fix syntax highlighting and add css files for offline highlighting to prevent windows help docs delay
Diffstat (limited to 'docs/python.min.js')
| -rw-r--r-- | docs/python.min.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/python.min.js b/docs/python.min.js new file mode 100644 index 00000000..62cb0717 --- /dev/null +++ b/docs/python.min.js @@ -0,0 +1 @@ +hljs.registerLanguage("python",function(e){var r={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},b={cN:"meta",b:/^(>>>|\.\.\.) /},c={cN:"subst",b:/\{/,e:/\}/,k:r,i:/#/},a={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[b],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[b],r:10},{b:/(fr|rf|f)'''/,e:/'''/,c:[b,c]},{b:/(fr|rf|f)"""/,e:/"""/,c:[b,c]},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},{b:/(fr|rf|f)'/,e:/'/,c:[c]},{b:/(fr|rf|f)"/,e:/"/,c:[c]},e.ASM,e.QSM]},s={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},i={cN:"params",b:/\(/,e:/\)/,c:["self",b,s,a]};return c.c=[a,s,b],{aliases:["py","gyp"],k:r,i:/(<\/|->|\?)|=>/,c:[b,s,a,e.HCM,{v:[{cN:"function",bK:"def"},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,i,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}});
\ No newline at end of file |
