Add Lua syntax highlight

Issue #49 wontfix
annulen created an issue

No description provided.

Comments (7)

  1. Holger Schimanski repo owner

    Can you please give some more context e.g. link to details about the language and some sample code?

    Cheers, Holger

  2. Holger Schimanski repo owner

    Keywords: and break do else elseif end false for function if in local nil not or repeat return then true until while

    Strings: single and double quotes

    Comments: with --

    Multi line comments: with --[[ and ends at ]]

  3. annulen reporter
    • Functions from global "namespace" (table, actually), like assert, dofile, error, etc., should definitely be highlighted. Note that most popular Lua version in the real world is still 5.1, so it would be better to hightlight unpack, setfenv, getfenv as well.
    • Highlight for other standard library functions, especially those in 'string' and 'table', would also be useful.

    I suggest you to look at lua.vim contents - vim not only highlights this stuff but also makes difference between Lua versions (though the latter is not crucial)

  4. Holger Schimanski repo owner

    Since Jira 7.5 there is an improved syntax highlighter part of Jira. Please check there. I no longer work on my Jira Syntax Highlighter because of this new functionality in Jira 7.5.

  5. Log in to comment