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 support to if shorthand #5

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

Add support to if shorthand #5

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 15, 2017

Tries to fix #4.

Works with:

function hello()
  if world == '!' then
    something()
  end
end

function a()
  if (l) 1
end

if f then
  if (m) x+=1
end

if e then
  if (t) b+=0
else
  y+=1
end

ps: the workflow with vim syntax files is irritating as there isn't one.

@@ -46,7 +46,7 @@ syn match luaError "}"
syn match luaError "\<\%(end\|else\|elseif\|then\|until\|in\)\>"

" Function declaration
syn region luaFunctionBlock transparent matchgroup=luaFunction start="\<function\>" end="\<end\>" contains=ALLBUT,luaTodo,luaSpecial,luaCond,luaCondElseif,luaCondEnd,luaRepeat
Copy link
Author

Choose a reason for hiding this comment

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

I don't really know what this is trying todo as luaTODO works inside a function.

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.

Please add support for the PICO-8 Shorthand if
0 participants