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)
| 731 | // isEscaped reports whether the byte at i is preceded by an odd number of |
| 732 | // backslashes, which is what makes it a literal rather than markup. |
| 733 | func isEscaped(src []byte, i int) bool { |
| 734 | n := 0 |
| 735 | for j := i - 1; j >= 0 && src[j] == '\\'; j-- { |
| 736 | n++ |
| 737 | } |
| 738 | return n%2 == 1 |
| 739 | } |
| 740 | |
| 741 | func skipSpace(src []byte, i, hi int) int { |
| 742 | for i < hi && isSpace(src[i]) { |
no outgoing calls
no test coverage detected