Sublime Forum

[BUG] Syntax highlighting goes white at ~10KSLOC (Bld 3059)

#1

When loading large source files, at around line 8K the syntax highlighting begins to become erratic. Further on at around line 10K it goes completely white.

Below are 3 screenshots depicting the syntax highlighting issue at lines:

1800 picpaste.com/sublimetext_bug_screen_00.png

10000 picpaste.com/sublimetext_bug_screen_01.png

12000 picpaste.com/sublimetext_bug_screen_02.png

Similar issues reported on the forums:
https://forum.sublimetext.com/t/c-c-syntax-highlighting-bug/7667/1
https://forum.sublimetext.com/t/bug-c-syntax-highlighting-craps-out-after-8ksloc/11015/1

0 Likes

#2

Like to add, this is also an issue with: Build 3061

0 Likes

#3

Do you see similar issues with ST2? ST3 seems, for performance reasons, to disable syntax colouring on very long lines; perhaps it is doing the same with very large files. Personally I would appreciate it if such “intelligence features” could be switched off, given that on some systems the performance is not a problem.

0 Likes

#4

@qgates: Yes the problem is also present in version 2.0.2 build 2221

Below are 3 screenshots depicting the syntax highlighting issue at lines with version 2.0.2 build 2221:

1800 picpaste.com/sublimetext_bug_screen_00_v2.png

10000 picpaste.com/sublimetext_bug_screen_01_v2.png

12000 picpaste.com/sublimetext_bug_screen_02_v2.png

0 Likes

#5

Please note this is not some kind of “performance preservation feature”. This is a bug.

0 Likes

#6

I submit here a similar problem with Fortran :

https://github.com/textmate/fortran.tmbundle/issues/18

very basic rule, big problem !

0 Likes