Skip to content

clang-format: fix tests on old vim without textprop#150

Closed
sam-mccall wants to merge 1 commit intogoogle:masterfrom
sam-mccall:textprop
Closed

clang-format: fix tests on old vim without textprop#150
sam-mccall wants to merge 1 commit intogoogle:masterfrom
sam-mccall:textprop

Conversation

@sam-mccall
Copy link
Copy Markdown
Contributor

@sam-mccall sam-mccall commented May 18, 2020

Copy link
Copy Markdown
Contributor

@dbarnett dbarnett left a comment

Choose a reason for hiding this comment

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

Thanks, Sam!

One minor suggestion to add a clarifying note.

Comment thread vroom/clangformat.vroom
| 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')

@dbarnett
Copy link
Copy Markdown
Contributor

I can include these fixes in with other test fixes I'm making. Apparently we had a few different unhandled breakages lately.

@dbarnett
Copy link
Copy Markdown
Contributor

Obsoleted by #159.

@dbarnett dbarnett closed this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants