Emacs lua-mode syntax highlighting not working

I installed lua-mode for Emacs 24.1, but when I write lua code, the syntax highlighting does not work correctly.

lua-mode does not recognize a comment starting with '-'. And even single quotes, such as the string, are also not highlighted.

I could not find any specific information about this particular problem, does anyone know what is happening?

+5
source share
2 answers

Backlighting works for me on GNU Emacs 24.1.50.1A. A few things for you to double check:

  • The lua mode is on (the word "Lua" should appear in the mode line). If not, try activating it manually through M-x lua-modein the file buffer containing the lua code.
  • lua-mode.el? 20111107 http://immerrr.github.com/lua-mode.
+1

ubuntu 12.04 i, emacs 24, :

  $ sudo add-apt-repository ppa:cassou/emacs
  $ sudo apt-get update
  $ sudo apt-get install emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot

, lua-mode, https://github.com/technomancy/emacs-starter-kit "package-install lua -mode" emacs.

, , emacs . , ~/.emacs.d ~/.emacs.

0

All Articles