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.
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:
3 NOTICE the latter lines, beginning with
int, are highlighted as if quoted.Expecting the
intline to not be quoted. Xcode renders this code correctly.WORKAROUND: remove the semicolon (;) from the quoted string.