(ll, cl, lr, cr, li, ri, ls, rs)
| 1801 | addDoc(cm, 10, 10); |
| 1802 | |
| 1803 | function atom(ll, cl, lr, cr, li, ri, ls, rs) { |
| 1804 | var options = { |
| 1805 | atomic: true, |
| 1806 | inclusiveLeft: li, |
| 1807 | inclusiveRight: ri |
| 1808 | }; |
| 1809 | |
| 1810 | if (ls === true || ls === false) options["selectLeft"] = ls; |
| 1811 | if (rs === true || rs === false) options["selectRight"] = rs; |
| 1812 | |
| 1813 | return cm.markText(Pos(ll, cl), Pos(lr, cr), options); |
| 1814 | } |
| 1815 | |
| 1816 | // Can cursor to the left and right of a normal marker by jumping across it |
| 1817 | var m = atom(0, 1, 0, 5); |