1
0
forked from aniani/vim
Files
vim/runtime/syntax/testdir/input/progress_comments.p
Daniel Smith 408bd9ffe7 runtime(progress): Add syntax test for comments
We intend to update the Progress syntax file to support the single-line comment
syntax that was introduced in Progress OpenEdge 11.6. As there are no existing
tests for this file, we should first add one that demonstrates the comment
syntax that is already supported.

related: #15339

Signed-off-by: Daniel Smith <daniel@rdnlsmith.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-25 20:54:57 +02:00

32 lines
1.0 KiB
OpenEdge ABL

/*
* VIM_TEST_SETUP set filetype=progress
*/
define variable customer_name as character no-undo.
/* The test setup above is an example of a multi-line comment.
This is too; the leading * and left-hand alignment are not required. */
for each customer no-lock
where customer.customer_id = 12345
:
assign cust_name = customer.customer_name. /* Comments can also appear
at the end of a line. */
end. /* for each customer */
/* Comments can be /* nested */. Here's the same query as above, but
commented out this time:
for each customer no-lock
where customer.customer_id = 12345
:
assign cust_name = customer.customer_name. /* Comments can also appear
at the end of a line. */
end. /* for each customer */
TODO: Note that /*/ does not end the comment, because it actually starts a
new comment whose first character is a '/'. Now we need two end-comment
markers to return to actual code. */ */
display customer_name.