Function: lua--containing-double-hyphen-start-pos
lua--containing-double-hyphen-start-pos is a byte-compiled function
defined in lua-mode.el.gz.
Signature
(lua--containing-double-hyphen-start-pos)
Documentation
Return position of the beginning comment delimiter (--).
Emacs syntax framework does not consider comment delimiters as part of the comment itself, but for this package it is useful to consider point as inside comment when it is between the two hyphens
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua--containing-double-hyphen-start-pos ()
"Return position of the beginning comment delimiter (--).
Emacs syntax framework does not consider comment delimiters as
part of the comment itself, but for this package it is useful to
consider point as inside comment when it is between the two hyphens"
(and (eql (char-before) ?-)
(eql (char-after) ?-)
(1- (point))))