Function: haskell-lexeme-looking-at-backtick
haskell-lexeme-looking-at-backtick is a natively compiled function
defined in haskell-lexeme.el.
Signature
(haskell-lexeme-looking-at-backtick)
Documentation
Non-nil when point is just in front of an identifier quoted with backticks.
When match is successful, match-data will contain:
(match-text 1) - opening backtick
(match-text 2) - whole qualified identifier
(match-text 3) - unqualified part of identifier
(match-text 4) - closing backtick
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-lexeme.el
(defun haskell-lexeme-looking-at-backtick ()
"Non-nil when point is just in front of an identifier quoted with backticks.
When match is successful, match-data will contain:
(match-text 1) - opening backtick
(match-text 2) - whole qualified identifier
(match-text 3) - unqualified part of identifier
(match-text 4) - closing backtick"
(let ((match-data-old (match-data t))
first-backtick-start
last-backtick-start
qid-start
id-start
id-end
result)
(save-excursion
(when (looking-at "`")
(setq first-backtick-start (match-beginning 0))
(goto-char (match-end 0))
(forward-comment (buffer-size))
(when (haskell-lexeme-looking-at-qidsym)
(setq qid-start (match-beginning 0))
(setq id-start (match-beginning 1))
(setq id-end (match-end 1))
(goto-char (match-end 0))
(forward-comment (buffer-size))
(when (looking-at "`")
(setq last-backtick-start (match-beginning 0))
(set-match-data
(list
first-backtick-start (1+ last-backtick-start)
first-backtick-start (1+ first-backtick-start)
qid-start id-end
id-start id-end
last-backtick-start (1+ last-backtick-start)))
(setq result t)))))
(unless result
(set-match-data match-data-old))
result))