FireZenk / FireZenk/language-lua
Quotes inside C blocks passed to ffi.cdef breaks the highlighter
Open
- Dominant language
- No language data
- Stars
- 66
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.