I'm trying to create a major mode that handles the following syntax:
function someName(value1, value2)
# some contents
end function
I'm using the following to highlight the keywords function
, and end function
.
(define-derived-mode my-mode prog-mode "My Mode"
"Major mode for editing my mode code."
(setq-local font-lock-defaults
'(my-mode-font-lock))
How can I target the function name (someName
) and its arguments with font lock (value1
, value2
)?