Function: bazel--string-at-point
bazel--string-at-point is a natively compiled function defined in
bazel.el.
Signature
(bazel--string-at-point)
Documentation
Return the string literal at point, or nil if not inside a string literal.
Source Code
;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defun bazel--string-at-point ()
"Return the string literal at point, or nil if not inside a string literal."
(declare (ftype (function () (or string null))))
(let ((state (syntax-ppss)))
(when (ppss-string-terminator state) ; in string
(let ((start (1+ (ppss-comment-or-string-start state))))
(save-excursion
;; Jump to the closing quotation mark.
(parse-partial-sexp (point) (point-max) nil nil state 'syntax-table)
(buffer-substring-no-properties start (1- (point))))))))