I am looking to create a new syntax. This is what I have so far:
syntax match jl_comment "^# .*"
but I have noticed other examples using pattern like this:
This is confusing to me. With my example, the
. matches anything, so it
will continue until the end of line. So it seems the
$ is redundant. Is that
the case, or am I misunderstanding the rules?