CMake has 2 types of function definitions: macro/endmacro
and function/endfunction
. Scintilla only supports the former: https://sourceforge.net/p/scintilla/code/ci/default/tree/lexers/LexCmake.cxx#l87
I request to add support for function
and treat it just like macro
This will require someone to provide an implementation of the change. As I do not use CMake, I will not be working on this myself.
I have patches for OP's request; however, I should also mention that functions are part of CMake 3, which added more new features to the scripting language (see #1270). Our lexer does not currently have any of the new goodies.
The patches look good to me. IMO the bracket comment and arguments are not important (never seen them used) but the quoted argument is. The current lexer does recognize quoted text, so I don't see urgent need for changes besides the ones from this issue.
Committed patches as [03bbd7] and [7a7dd3].
Related
Commit: [7a7dd3]
Commit: [03bbd7]
Committed patches as [03bbd7] and [7a7dd3].
Related
Commit: [7a7dd3]
Commit: [03bbd7]