Syntax highlight fails when function argument is on separate line
yoonghm opened this issue · 2 comments
yoonghm commented
Markdown can highlight the code correctly but the highlight package from the standard and C-Improved do not work.
int doIt(int a)
{
//
}
int doIt
(int a)
{
//
}
abusalimov commented
Hi! Thanks for reporting this. I'm afraid, there is no way to handle this properly, it's tmLanguage syntax limitation: it is possible to parse a source using regular expressions only line-by-line. That is, when parsing int doIt
, there is no way to look ahead (int a)
on the next line, and vice versa.
abusalimov commented
Duplicates #3