Skip to content

NS[C]Assert Quote Highlighting Skips Openquote #5

@nrichards

Description

@nrichards

Originally reported here: sublimehq/sublime_text#591. Then reported directly to GitHub who referred me to Linguist. They referred to this repository.

The quote (") syntax highlighting can carry on highlighting until the end of file, skipping / ignoring an opening quote, honoring only the closing quote, given a specific Objective-C code block.

I expect for the quote character to start highlighting at an opening quote.

Seen on GitHub, currently, in their Issue Tracker.

1 Create a new Objective-C file, e.g. "foo.m"
2 Input the following code block:

 - (void)foo {
   NSCAssert((1), @";");
   int four = 4;
 }

3 NOTICE the latter lines, beginning with int, are highlighted as if quoted.

Expecting the int line to not be quoted. Xcode renders this code correctly.

WORKAROUND: remove the semicolon (;) from the quoted string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions