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

Quotes inside C blocks passed to ffi.cdef breaks the highlighter #35

Open
JoanCharmant opened this issue Sep 2, 2016 · 0 comments
Open

Comments

@JoanCharmant
Copy link

JoanCharmant commented Sep 2, 2016

This seems to only happen if the quote is inside a C block scope itself.

The quote is interpreted as opening a new string and the rest of the file is highlighted as a string, even after the call to ffi.cdef ends.

Here is a snippet that should reproduce the issue:

ffi.cdef [[ 
int i = 42; // ' this one is OK.
enum test
{
    FOO, // ' this one is KO.
    BAR
};
]]

local baz

Ideally the quote should be ignored as it's inside the multiline string.

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

No branches or pull requests

1 participant