Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.51 KB | None | 0 0
  1.   ;; Non raw strings
  2.   ;; 1. if in string, find a fence backwads that is not string
  3.   ;;    interpolation
  4.   ;; 2. now search forward for a matching delimiter, ensuring no
  5.   ;;    non-interpolation fences before then, marking the closing
  6.   ;;    match as fence, unless we reach end. if it's not multiline
  7.   ;;    fence, then mark end of line as delimiter
  8.   ;; 3. if we don't start in a string, search backwards, ensuring we
  9.   ;;    are not in interpolation. if we are, find forward it's match
  10.   ;;    and mark as fence.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement