branch: elpa/lua-mode
commit 625ed2f366cb719cae7382a2ec34bf5e9c3bd6b0
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Move credits to AUTHORS, cleanup Commentary section a bit
---
AUTHORS | 39 +++++++++++++++++++++++++++++++++
lua-mode.el | 72 +++++++++++--------------------------------------------------
2 files changed, 52 insertions(+), 59 deletions(-)
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..72cf433
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,39 @@
+Thanks to:
+
+- Thanks to Juergen Fuhrmann <[email protected]> (tiny change)
+
+- Thanks to guoxx <[email protected]> for imenu expression extension (tiny change).
+
+- Vedat Hallac <github.com/vhallac> for sharing some of his fixes and updates
+ to core indentation logics.
+
+- Julien Danjou <[email protected]> for a patch deriving lua-mode from
+ prog-mode with define-derived-mode
+
+- Rafael Sanchez <[email protected]> for patch adding lua-mode to
+ interpreter-mode-alist.
+
+- Thanks to Leonardo Etcheverry <[email protected]> for enabling narrow-to-defun
+ and fixing lua-send-defun.
+
+- Thanks to Tobias Polzin <[email protected]> for function indenting patch: Indent
+ "(" like "{".
+
+- Thanks to Fabien <[email protected]> for imenu patches.
+
+- Thanks to Simon Marshall <[email protected]> and Olivier Andrieu
+ <[email protected]> for font-lock patches.
+
+- Additional font-lock highlighting and indentation tweaks by Adam D. Moss
+ <[email protected]>.
+
+- Juergen Hoetzel <[email protected]> for hard work maintaining lua-mode
during
+ 2006 -- 2010.
+
+- Reuben Thomas <[email protected]> for hard work maintaining lua-mode during 2010
+ -- 2011.
+
+- Rolando Pereira <[email protected]> for adding support for goto keyword
+
+Ideas:
+- thanks to d87 <github.com/d87> for an idea of highlighting lua builtins
diff --git a/lua-mode.el b/lua-mode.el
index 0106b1e..b8532f0 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -40,65 +40,18 @@
;;; Commentary:
-;; Thanks to d87 <github.com/d87> for an idea of highlighting lua
-;; builtins/numbers
+;; lua-mode provides support for editing Lua, including automatical
+;; indentation, syntactical font-locking, running interactive shell,
+;; interacting with `hs-minor-mode' and online documentation lookup.
-;; Thanks to Vedat Hallac <github.com/vhallac> for sharing some of
-;; his fixes and updates to core indentation logics
+;; Interesting variables:
+;; - `lua-indent-level': indentation offset
+;; - `lua-default-application': command to use as the interpreter
+;; - `lua-default-command-switches': arguments to the interpreter
+;; - `lua-search-url-prefix': url to use for documentation lookup
-;; Thanks to Rafael Sanchez <[email protected]> for patch
-;; adding lua-mode to interpreter-mode-alist
-
-;; Thanks to Leonardo Etcheverry <[email protected]> for enabling
-;; narrow-to-defun functionality
-
-;; Thanks to Tobias Polzin <[email protected]> for function indenting
-;; patch: Indent "(" like "{"
-
-;; Thanks to Fabien <[email protected]> for imenu patches.
-
-;; Thanks to Simon Marshall <[email protected]> and Olivier
-;; Andrieu <[email protected]> for font-lock patches.
-
-;; Additional font-lock highlighting and indentation tweaks by
-;; Adam D. Moss <[email protected]>.
-
-;; INSTALLATION:
-
-;; To install, just copy this file into a directory on your load-path
-;; (and byte-compile it). To set up Emacs to automatically edit files
-;; ending in ".lua" or with a lua hash-bang line using lua-mode add
-;; the following to your init file:
-;;
-;; (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
-;; (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
-;; (add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
-
-;; Usage
-
-;; Lua-mode supports c-mode style formatting and sending of
-;; lines/regions/files to a Lua interpreter. An interpreter (see
-;; variable `lua-default-application') will be started if you try to
-;; send some code and none is running. You can use the process-buffer
-;; (named after the application you chose) as if it were an
-;; interactive shell. See the documentation for `comint.el' for
-;; details.
-
-;; Lua-mode works with Hide Show minor mode (see ``hs-minor-mode``).
-
-;; Key-bindings
-
-;; To see all the keybindings for Lua mode, look at `lua-setup-keymap'
-;; or start `lua-mode' and type `\C-h m'.
-;; The keybindings may seem strange, since I prefer to use them with
-;; lua-prefix-key set to nil, but since those keybindings are already used
-;; the default for `lua-prefix-key' is `\C-c', which is the conventional
-;; prefix for major-mode commands.
-
-;; You can customise the keybindings either by setting `lua-prefix-key'
-;; or by putting the following in your .emacs
-;; (define-key lua-mode-map <your-key> <function>)
-;; for all the functions you need.
+;; See "M-x apropos-command ^lua-" for a list of commands.
+;; See "M-x customize-group lua" for a list of customizable variables.
;;; Code:
@@ -681,8 +634,9 @@ Groups 6-9 can be used in any of argument regexps."
(lua--setq-local syntax-propertize-function
'lua--propertize-multiline-bounds)
(with-no-warnings
- (lua--setq-local
- font-lock-syntactic-keywords 'lua-font-lock-syntactic-keywords)))
+ ;; font-lock-syntactic-keywords are deprecated since 24.1
+ (lua--setq-local
+ font-lock-syntactic-keywords 'lua-font-lock-syntactic-keywords)))
(lua--setq-local font-lock-extra-managed-props '(syntax-table))
(lua--setq-local parse-sexp-lookup-properties t)
(lua--setq-local indent-line-function 'lua-indent-line)