mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:4d68054: 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: vim/vim#15339
4d68054c1e
Co-authored-by: Daniel Smith <daniel@rdnlsmith.com>
This commit is contained in:
parent
a2840d0117
commit
bb185d63ab
@ -9,8 +9,7 @@
|
|||||||
" Chris Ruprecht <chrisSPAXY@ruprecht.org>
|
" Chris Ruprecht <chrisSPAXY@ruprecht.org>
|
||||||
" Mikhail Kuperblum <mikhailSPAXY@whasup.com>
|
" Mikhail Kuperblum <mikhailSPAXY@whasup.com>
|
||||||
" John Florian <jflorianSPAXY@voyager.net>
|
" John Florian <jflorianSPAXY@voyager.net>
|
||||||
" Version: 13
|
" Last Change: Jul 23 2024
|
||||||
" Last Change: Nov 11 2012
|
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -117,8 +116,10 @@ syn match ProgressShowTab "\t"
|
|||||||
" If you don't like white space on the end of lines, uncomment this:
|
" If you don't like white space on the end of lines, uncomment this:
|
||||||
" syn match ProgressSpaceError "\s\+$"
|
" syn match ProgressSpaceError "\s\+$"
|
||||||
|
|
||||||
syn region ProgressComment start="/\*" end="\*/" contains=ProgressComment,ProgressTodo,ProgressDebug,@Spell
|
syn region ProgressBlockComment start="/\*" end="\*/" contains=ProgressBlockComment,ProgressTodo,ProgressDebug,@Spell
|
||||||
syn region ProgressInclude start="^[ ]*[{]" end="[}]" contains=ProgressPreProc,ProgressOperator,ProgressString,ProgressComment
|
syn match ProgressLineComment "//.*$" contains=ProgressTodo,ProgressDebug,@Spell
|
||||||
|
syn cluster ProgressComment contains=ProgressBlockComment,ProgressLineComment
|
||||||
|
syn region ProgressInclude start="^[ ]*[{]" end="[}]" contains=ProgressPreProc,ProgressOperator,ProgressString,@ProgressComment
|
||||||
syn region ProgressPreProc start="&" end="\>" contained
|
syn region ProgressPreProc start="&" end="\>" contained
|
||||||
|
|
||||||
" This next line works reasonably well.
|
" This next line works reasonably well.
|
||||||
@ -282,6 +283,8 @@ syn sync lines=800
|
|||||||
hi def link ProgressByte Number
|
hi def link ProgressByte Number
|
||||||
hi def link ProgressCase Repeat
|
hi def link ProgressCase Repeat
|
||||||
hi def link ProgressComment Comment
|
hi def link ProgressComment Comment
|
||||||
|
hi def link ProgressBlockComment ProgressComment
|
||||||
|
hi def link ProgressLineComment ProgressComment
|
||||||
hi def link ProgressConditional Conditional
|
hi def link ProgressConditional Conditional
|
||||||
hi def link ProgressDebug Debug
|
hi def link ProgressDebug Debug
|
||||||
hi def link ProgressDo Repeat
|
hi def link ProgressDo Repeat
|
||||||
|
Loading…
Reference in New Issue
Block a user