Skip to content

Commit

Permalink
Deploying to gh-pages from @ 080cabb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Sep 20, 2023
1 parent 728b87a commit da58cd8
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags;
function truthy(val) {
return val === "true" || val === true;
}
let s = "";let lsp,sp,sl; let c = new TextDecoder();const evt = [];
let evt_tmp1, evt_tmp2;
function get_evt() {
evt_tmp2 = u8buf[u8bufp++];
if(evt_tmp2 & 128){
evt_tmp1=s.substring(sp,sp+=u8buf[u8bufp++]);
evt[evt_tmp2&4294967167]=evt_tmp1;
return evt_tmp1;
}
else{
return evt[evt_tmp2&4294967167];
}
}const attr = [];
const attr = [];
let attr_tmp1, attr_tmp2;
function get_attr() {
attr_tmp2 = u8buf[u8bufp++];
Expand All @@ -187,7 +175,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags;
else{
return attr[attr_tmp2&4294967167];
}
}let u32buf,u32bufp;let u8buf,u8bufp;const ns_cache = [];
}const ns_cache = [];
let ns_cache_tmp1, ns_cache_tmp2;
function get_ns_cache() {
ns_cache_tmp2 = u8buf[u8bufp++];
Expand All @@ -199,8 +187,20 @@ let m,p,ls,d,t,op,i,e,z,metaflags;
else{
return ns_cache[ns_cache_tmp2&4294967167];
}
}let u32buf,u32bufp;let s = "";let lsp,sp,sl; let c = new TextDecoder();let u8buf,u8bufp;const evt = [];
let evt_tmp1, evt_tmp2;
function get_evt() {
evt_tmp2 = u8buf[u8bufp++];
if(evt_tmp2 & 128){
evt_tmp1=s.substring(sp,sp+=u8buf[u8bufp++]);
evt[evt_tmp2&4294967167]=evt_tmp1;
return evt_tmp1;
}
else{
return evt[evt_tmp2&4294967167];
}
}
let value,ns,ptr,len,bubbles,field,event_name,id;
let ptr,len,event_name,value,ns,bubbles,id,field;
export function create(r){
d=r;
}
Expand All @@ -213,7 +213,10 @@ let m,p,ls,d,t,op,i,e,z,metaflags;
ls=m.getUint32(d+12*4,true);
}
p=ls;
if (metaflags&1){
if ((metaflags>>>3)&1){
u32buf=new Uint32Array(m.buffer,m.getUint32(d+3*4,true))
}
u32bufp=0;if (metaflags&1){
lsp = m.getUint32(d+1*4,true);
}
if ((metaflags>>>2)&1) {
Expand All @@ -239,10 +242,7 @@ let m,p,ls,d,t,op,i,e,z,metaflags;
s = c.decode(new DataView(m.buffer, lsp, sl));
}
}
sp=0;if ((metaflags>>>3)&1){
u32buf=new Uint32Array(m.buffer,m.getUint32(d+3*4,true))
}
u32bufp=0;if ((metaflags>>>5)&1){
sp=0;if ((metaflags>>>5)&1){
u8buf=new Uint8Array(m.buffer,m.getUint32(d+5*4,true))
}
u8bufp=0;
Expand Down
Binary file modified demos/dioxus/assets/dioxus/syntastica-dioxus-demo_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion js/functions/highlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
more information on the output.</p>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L83">index.ts:83</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L83">index.ts:83</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/functions/init.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L26">index.ts:26</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L26">index.ts:26</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/functions/process.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h5><span class="tsd-kind-parameter">language</span>: <span class="tsd-signature
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L110">index.ts:110</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L110">index.ts:110</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/functions/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h5><span class="tsd-kind-parameter">renderer</span>: <span class="tsd-signature
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>The highlighted code in the requested format.</p>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L138">index.ts:138</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L138">index.ts:138</a></li></ul></aside></li></ul></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/types/Language.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Type alias Language</h1></div>
<div class="tsd-comment tsd-typography"><p>A language name to pass to <a href="../functions/init.html" class="tsd-kind-function">init</a>, <a href="../functions/highlight.html" class="tsd-kind-function">highlight</a>, or <a href="../functions/process.html" class="tsd-kind-function">process</a>.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L13">index.ts:13</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L13">index.ts:13</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/types/Theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Type alias Theme</h1></div>
<div class="tsd-comment tsd-typography"><p>A theme name to pass to <a href="../functions/highlight.html" class="tsd-kind-function">highlight</a> or <a href="../functions/render.html" class="tsd-kind-function">render</a>.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L8">index.ts:8</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L8">index.ts:8</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/variables/LANGUAGES.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Variable LANGUAGES<code class="tsd-tag ts-flagConst">Const</code> </h1></div
<h3>See</h3><p>The <a href="../types/Language.html" class="tsd-kind-type-alias">Language</a> type.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L161">index.ts:161</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L161">index.ts:161</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/variables/THEMES.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Variable THEMES<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
<h3>See</h3><p>The <a href="../types/Theme.html" class="tsd-kind-type-alias">Theme</a> type.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L214">index.ts:214</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L214">index.ts:214</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion js/variables/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h5><span class="tsd-kind-parameter">renderer</span>: <span class="tsd-signature
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>The highlighted code in the requested format.</p>
</li></ul></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/1d34bc2/syntastica-js/src/index.ts#L152">index.ts:152</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/RubixDev/syntastica/blob/080cabb/syntastica-js/src/index.ts#L152">index.ts:152</a></li></ul></aside></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
5 changes: 3 additions & 2 deletions syntastica/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="`syntastica`"><title>syntastica - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-085727c29c2fa99e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="syntastica" data-themes="" data-resource-suffix="" data-rustdoc-version="1.74.0-nightly (bdb0fa3ee 2023-09-19)" data-channel="nightly" data-search-js="search-cfcb9d78f851226e.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-c5bd66d33317d69f.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../syntastica/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a></nav><nav class="sidebar"><a class="logo-container" href="../syntastica/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Crate syntastica</a></h2><div class="sidebar-elems"><ul class="block"><li class="version">Version 0.4.1</li><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#macros">Macros</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Aliases</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">syntastica</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/syntastica/lib.rs.html#1-69">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="syntastica"><a href="#syntastica"><code>syntastica</code></a></h2><!-- TODO: msrv -->
<p>Modern and easy syntax highlighting using tree-sitter</p>
<blockquote>
<p>Note: If viewing this file on <a href="https://github.com/RubixDev/syntastica">GitHub</a>
or <a href="https://crates.io/crates/syntastica">crates.io</a>, some links might not be
<p><strong>Note</strong></p>
<p>If viewing this file on <a href="https://github.com/RubixDev/syntastica">GitHub</a> or
<a href="https://crates.io/crates/syntastica">crates.io</a>, some links might not be
working. Go to the
<a href="https://rubixdev.github.io/syntastica/syntastica/">custom docs page</a> or the
<a href="https://docs.rs/syntastica/">docs.rs page</a> instead, which additionally
Expand Down

0 comments on commit da58cd8

Please sign in to comment.