Ticket #808 (closed patch: fixed)
VIM syntax file: fix parsing of quoted ".end"
Reported by: | flh | Owned by: | jkeenan |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | none | Version: | trunk |
Severity: | medium | Keywords: | Vim |
Cc: | Language: | ||
Patch status: | applied | Platform: | all |
Description
The vim syntax file for PIR currently treats a quoted '.end' in a string as the PIR .end directive, i.e., in the following example, VIM thinks that the sub ends after $S0 = ":
.sub 'my_sub' $S0 = ".end" .return ($S0) .end
The small attached patch to pir_vim.in fixes that (now, sub ends are matched by "\^\s*\.end" instead of simply "\.end"). It also updates the definition for macro ends (.endm) in the same way.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.