Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs lua-mode syntax highlighting not working

Tags:

emacs

lua

I installed the lua-mode for Emacs 24.1 but when I am writing lua code, the syntax highlighting is not working properly.

lua-mode does not recognize a comment starting with '--'. And even single quoted strings like 'string' are also not highlighted.

I could not find any specific information about this particular issue, does anyone has any idea what is going on?

like image 519
Apeirogon Prime Avatar asked Nov 12 '22 22:11

Apeirogon Prime


1 Answers

Highlighting works for me on GNU Emacs 24.1.50.1A. A couple of things for you to double check:

  • Is lua-mode enabled (the word "Lua" should appear in the mode line). If not, try to activate it manually via M-x lua-mode on a file buffer containing lua code.
  • Is lua-mode.el current? I use version 20111107 from http://immerrr.github.com/lua-mode.
like image 122
halloleo Avatar answered Nov 15 '22 11:11

halloleo