marimo-learn / _site /python /assets /diff-UJJ5BM9S.js
Haleshot's picture
relevant assets and workflow
1cce1df unverified
raw
history blame
308 Bytes
var e={"+":"inserted","-":"deleted","@":"meta"};const r={name:"diff",token:function(r){var n=r.string.search(/[\t ]+?$/);if(!r.sol()||0===n)return r.skipToEnd(),("error "+(e[r.string.charAt(0)]||"")).replace(/ $/,"");var t=e[r.peek()]||r.skipToEnd();return-1===n?r.skipToEnd():r.pos=n,t}};export{r as diff};