mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
runtime(progress): Add single-line comment syntax
Progress OpenEdge 11.6 added a new C-like single-line comment syntax; such comments begin with `//` and proceed to the end of the line. Add a new syntax group `ProgressLineComment` to implement highlighting for this syntax. Rename the existing group from `ProgressComment` to `ProgressBlockComment`, and introduce a cluster named `ProgressComment` to encapsulate both. closes: #15339 Signed-off-by: Daniel Smith <daniel@rdnlsmith.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
408bd9ffe7
commit
4d68054c1e
@@ -29,3 +29,17 @@ markers to return to actual code. */ */
|
||||
|
||||
display customer_name.
|
||||
|
||||
// This is the single-line comment syntax.
|
||||
|
||||
//No space is required after the slashes. Also, a /* here does not begin a
|
||||
//new block comment.
|
||||
|
||||
for each supplier no-lock:
|
||||
/* However, a block comment can end inside (what looks like) a
|
||||
single-line comment, because the slashes are just text as far as the
|
||||
// block comment is concerned. */
|
||||
display supplier.
|
||||
|
||||
// TODO: Observe that todo highlighting works in line comments too.
|
||||
end.
|
||||
|
||||
|
Reference in New Issue
Block a user