Skip to content

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

Description

@JoanCharmant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions