I am creating a vim syntax file for a niche language that has no syntax file yet. The language has the following syntax when setting up a simple function.
foo(parameter)
if parameter then
print("yes")
else
print("no")
end
end
I want the end that is paired with the if to have the syntax coloring for conditionals and the "end" paired with the function declaration to have function syntax coloring. How do I achieve this? I currently have end set as a keyword. This ensures that it is colored, but it matches the color of the if only, never the function name.
Thanks for any help.