Variable: lua-cont-eol-regexp
lua-cont-eol-regexp is a variable defined in lua-mode.el.gz.
Value
"\\(?:\\(?:\\(?1:\\_<\\(\\(?:and\\|elseif\\|f\\(?:or\\|unction\\)\\|i[fn]\\|local\\|not\\|or\\|return\\|until\\|while\\)\\)\\_>\\)\\|\\(?:^\\|[^&*+./:<->^|~-]\\)\\(?2:\\(\\(?:\\.\\.\\|<[<=]\\|==\\|>[=>]\\|~=\\|[%&*+,./:<=>|~^-]\\)\\)\\)\\)\\s-*\\=\\)"
Documentation
Regexp that matches the ending of a line that needs continuation.
This regexp starts from eol and looks for a binary operator or an
unclosed block intro (i.e. for without do or if without then)
followed by an optional whitespace till the end of the line.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defconst lua-cont-eol-regexp
(eval-when-compile
(rx-to-string
`(seq (or (group-n 1
symbol-start
(group (or "and" "or" "not" "in" "for" "while" "local"
"function" "if" "until" "elseif" "return"))
symbol-end)
(seq (or bol (not (any ,lua-operator-class)))
(group-n 2
(group (or "%" "&" "*" "+" "," "-" "." ".." "/" ":"
"<" "<<" "<=" "=" "==" ">" ">=" ">>" "^"
"|" "~" "~=")))))
(zero-or-more (syntax whitespace))
point)))
"Regexp that matches the ending of a line that needs continuation.
This regexp starts from eol and looks for a binary operator or an
unclosed block intro (i.e. `for' without `do' or `if' without `then')
followed by an optional whitespace till the end of the line.")