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

Add ftplugin/pico8.vim with sws, comment string options. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ssteinbach
Copy link
Contributor

Ok, I copied the file, but a lot of it seemed specific to xolox plugins so I stripped it out and started from scratch. Take a look at let me know if I'm missing anything in there.

@ssteinbach
Copy link
Contributor Author

Covers #2

@@ -49,7 +49,7 @@ syn match luaError "\<\%(end\|else\|elseif\|then\|until\|in\)\>"
syn region luaFunctionBlock transparent matchgroup=luaFunction start="\<function\>" end="\<end\>" contains=ALLBUT,luaTodo,luaSpecial,luaCond,luaCondElseif,luaCondEnd,luaRepeat

" if then else elseif end
syn keyword luaCond contained else
syn keyword luaCond contained else and or
Copy link
Owner

Choose a reason for hiding this comment

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

What effect does this have? Is this different in pico-8 lua?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, missed this. This includes highlighting for the and and or keywords (which are valid in lua as well as pico8's lua flavor.

@ssteinbach
Copy link
Contributor Author

Let me know if you have any other notes! Thanks again!

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