Add Lua syntax highlight
No description provided.
Comments (7)
-
repo owner -
reporter http://en.wikipedia.org/wiki/Lua_(programming_language)
It would be fine for the first time if JIRA could hightlight Lua code from this Wikipedia page the same way.
Full definition of language: http://www.lua.org/manual/5.1 http://www.lua.org/manual/5.2
Vim syntax highlight file: https://vim.googlecode.com/hg/runtime/syntax/lua.vim
-
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 ]]
-
repo owner What do you think about Lua functions listed at http://www.lua.org/manual/5.2/? Should they all be somewhat highlighted / coloured? Or would keywords, strings and comments be okay for a first start?
-
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)
-
reporter BTW, there is another kind of quotes: [[ string with line breaks]]
Also. multiline comments and strings can contain '=' characters between pair of square brackets, which can be used for nesting : http://www.lua.org/manual/5.2/manual.html#3.1
--[==[valid comment]==]
[=[valid string literal]=]
-
repo owner - changed status to wontfix
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.
- Log in to comment
Can you please give some more context e.g. link to details about the language and some sample code?
Cheers, Holger