Sublime Forum

Bug with Pascal Syntax Highlighting in ST3

#1

In Sublime Text 3, if a function or procedure declaration follows immediately a comment line, the declaration does not get syntax highlighting.

[code]// Comment
function MyFunc(const aParam: string): string;

// Comment
procedure MyProc(const aParam: string);
[/code]
The workaround is to leave at least one blank line between the comment line and the declaration, but it is not very practical because you get to see less code in one page.

0 Likes