Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use concealed lrv- and love- prefixes; wrap <> for unknown #20

Merged
merged 2 commits into from
Aug 7, 2020

Conversation

idbrii
Copy link
Contributor

@idbrii idbrii commented Aug 5, 2020

Resolves #19 by building on davisdude's work.

This resolves the No links for love types and Nontypes formatted as types issues I found. I didn't attempt to resolve the issue with Aggregate or multiple possible types.

Adding after/syntax/help.vim required bypassing gitignore. Not sure if you want an alternative solution. I didn't test any syntax changes (I don't use the syntax features of vim-love-docs).

idbrii added a commit to idbrii/luarefvim that referenced this pull request Aug 5, 2020
davisdude and I implemented changes to generate the docs properly.
davisdude/vim-love-docs#20

Fixes love-function -> lrv-function, love-light userdata ->
lrv-lightuserdata, and changes || to <> for undocumented types.
Copy link
Owner

@davisdude davisdude left a comment

Choose a reason for hiding this comment

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

The after/syntax/ files are also generated, so I ignore them as well. The simple fix is to just put this file in src/syntax/ then make gen.sh and gen.bat copy it to the right place.

idbrii added 2 commits August 5, 2020 14:39
Fix undocumented love types (e.g., DisplayOrientation) from being marked
with lrv- prefix. Now, those types are wrapped with <> to show that they
don't have help. Love types are prefixed with love- to match their tag.

LUA_TYPES is pulled from [the manual
](http://www.lua.org/manual/5.4/manual.html#2.1) and those types are the
same in 5.1 and 5.4. Added lightuserdata which is used in love docs but
unfortunately adds a space so we need to remap to match the lrv tag.
Hide these implementation detail prefixes to make documentation easier
to read.

Syntax file must be in after/ so it can clobber helpHyperTextJump from
vanilla vim help syntax. We generate the after/syntax/ directory, so
move the file in the with the gen scripts.
@idbrii
Copy link
Contributor Author

idbrii commented Aug 5, 2020

I haven't tried on a Windows machine, but I think copy should work.

@davisdude davisdude merged commit f0047a8 into davisdude:issue19 Aug 7, 2020
@idbrii idbrii deleted the issue19 branch August 14, 2020 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants