Function: lua-comment-start-pos
lua-comment-start-pos is a byte-compiled function defined in
lua-mode.el.gz.
Signature
(lua-comment-start-pos &optional PARSING-STATE)
Documentation
Return position of comment containing current point.
If point is not inside a comment, return nil.
The argument PARSING-STATE is a syntax-ppss state.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-comment-start-pos (&optional parsing-state)
"Return position of comment containing current point.
If point is not inside a comment, return nil.
The argument PARSING-STATE is a `syntax-ppss' state."
(if-let* ((parsing-state (or parsing-state (syntax-ppss)))
((not (nth 3 parsing-state))) ; Not a string.
((nth 4 parsing-state))) ; Syntax-based comment.
(nth 8 parsing-state)
(lua--containing-double-hyphen-start-pos)))