lua-mode
lua-mode copied to clipboard
Emacs major mode for editing Lua
### Steps to reproduce ```elisp (with-temp-buffer (insert "\ local x = function() return {{}} end if true then if false then return 0 end return 1 end") (lua-mode) (goto-char (point-max))...
``` emacs-lisp (defun lua-get-symbol () (let* ((line-start (if (derived-mode-p 'inferior-lua-mode) ;; Working on a shell buffer: use prompt end. (cdr (lua-util-comint-last-prompt)) (line-beginning-position))) (start (save-excursion (if (not (re-search-backward (lua-rx ;; find...
我把python-mode中的completion-at-point的代码粘贴到了lua-mode中 能做点简单的completion,没有经过测试,肯定是有bug 以下是新加的代码 ``` emacs-lisp (eval-and-compile (defconst lua-rx-constituents `((block-start . ,(rx symbol-start (or "def" "class" "if" "elif" "else" "try" "except" "finally" "for" "while" "with" ;; Lua 3.5+ PEP492 (and "async"...
Now we will try to handle long chunk strings (> 500 characters) via temporary files.
Is there such a thing in lua-mode already, i couldn't find it anyway and i think it is nice if the blocks get an `end` inserted automatically, so if i...
Hi this is what I'm experiencing recently using lua-send-region or lua-send-buffer: in the config, I have the following `(seq lua-default-application 'install/bin/qlua')` ``` Lua 5.1 Copyright (C) 1994-2008 Lua.org, PUC-Rio >...
Since `lua-start-process` activates `compilation-shell-minor-mode` instead of defining its own mode, there is no way to customize the keymap it uses or add hooks. It seems like defining a derived mode...
Copied from ruby-mode.el now, when typing a closing token like _end_, an automatically reindent will be performed. it also works for _else_ _elseif_ _until_. (I did a quick scan on...