isEscaped reports whether the byte at i is preceded by an odd number of backslashes, which is what makes it a literal rather than markup.
(src []byte, i int)
| 694 | // isEscaped reports whether the byte at i is preceded by an odd number of |
| 695 | // backslashes, which is what makes it a literal rather than markup. |
| 696 | func isEscaped(src []byte, i int) bool { |
| 697 | n := 0 |
| 698 | for j := i - 1; j >= 0 && src[j] == '\\'; j-- { |
| 699 | n++ |
| 700 | } |
| 701 | return n%2 == 1 |
| 702 | } |
| 703 | |
| 704 | func skipSpace(src []byte, i, hi int) int { |
| 705 | for i < hi && isSpace(src[i]) { |
no outgoing calls
no test coverage detected