Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions vroom/clangformat.vroom
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ like line2byte() and :goto being buggy in that case.
% int f() {<CR>
| int i=1;<CR>
| return 1234567890; }<CR>
:call prop_type_add('keyword', {})
:call prop_add(1, 1, {'length': 3, 'type': 'keyword'})
:if has('textprop')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add a note to clarify we're not verifying anything interesting in the !has('textprop') case. Something like this:

Suggested change
:if has('textprop')
This skips the textprop case if not supported (meaning this block won't do any
interesting verification when run in older versions of vim).
:if has('textprop')

: call prop_type_add('keyword', {})
: call prop_add(1, 1, {'length': 3, 'type': 'keyword'})
:endif
:call cursor(2, 10)
:echomsg getline('.')[col('.')-1]
~ =
Expand Down