Variable: lua-cont-bol-regexp
lua-cont-bol-regexp is a variable defined in lua-mode.el.gz.
Value
"\\(?:\\=\\s-*\\(?:\\(?1:\\_<\\(\\(?:and\\|in\\|not\\|or\\)\\)\\_>\\)\\|\\(?2:\\(\\(?:\\.\\.\\|<[<=]\\|==\\|>[=>]\\|~=\\|[%&*+,./:<=>|~^-]\\)\\)\\)\\(?:$\\|[^&*+./:<->^|~-]\\)\\)\\)"
Documentation
Regexp that matches a line that continues previous one.
This regexp means, starting from point there is an optional whitespace followed by Lua binary operator. Lua is very liberal when it comes to continuation line, so we're safe to assume that every line that starts with a binop continues previous one even though it looked like an end-of-statement.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defconst lua-cont-bol-regexp
(eval-when-compile
(rx-to-string
`(seq point (zero-or-more (syntax whitespace))
(or (group-n 1
symbol-start
(group (or "and" "in" "not" "or"))
symbol-end)
(seq (group-n 2
(group (or "%" "&" "*" "+" "," "-" "." ".." "/" ":"
"<" "<<" "<=" "=" "==" ">" ">=" ">>" "^"
"|" "~" "~=")))
(or eol (not (any ,lua-operator-class))))))))
"Regexp that matches a line that continues previous one.
This regexp means, starting from point there is an optional whitespace
followed by Lua binary operator. Lua is very liberal when it comes to
continuation line, so we're safe to assume that every line that starts
with a binop continues previous one even though it looked like an
end-of-statement.")