christophhart / HISE

The open source framework for sample based instruments
http://hise.audio
Other
1.07k stars 123 forks source link

Code editor block comment highlighting doesn't work properly #251

Open davidhealey opened 2 years ago

davidhealey commented 2 years ago

Commit

https://github.com/christophhart/HISE/commit/ecd5f153a7d47e335caf52f446b63cb7929598c7

Conditions to reproduce the bug

OS: Linux HISE: yes Compiled Project: n/a

Problem Description

When adding block comments, if the whole block goes below the fold (so you have to scroll to continue reading it) then as soon as the top line goes out of view the green highlighting vanishes.

Peek 2022-02-16 17-48

Snippet

HiseSnippet 7207.3ocscktbajccFXjnqLHKkcU4An+4XWSnkRbrSU4G1Tjfioi.Ek3Rk+4pIPSxNSitg5E3nJUdLxyQd07aPx4btm6R2nuaMjU4ZLAPubWNqemk6M0UqyZZppmM+au6K6xlM+u4ja+RY6Km+RZd4rqtX17+tSVk1zlUmH9p28kcoMMYalMe9q9A7Kl+sudF8u+7u8coEokqyze0rYOTkuN684aya0e6M+t+s7hhKS2jcW9Viq9W86tZcU44UEUcv34Um7lY6RW+ioOmccJdYeyIyl+SVtIusp911z1rF3ZdW0lub6KU+oRw0+PdS9iEY3Gd6ragGj3qmc9K4EatQNWalMa9quQOyekXl+2exp7M4puWuB7SoeHQeGlqAy+FWCo2FwPZtwP50hgzO6jaWWmuqU+K334u9jqJgMjmRgkZygh3Zm8M+u+OmbdEbEksmtM8GytrF9f5N9te8ady2m.+me9+5hE+xew6qpy1ljuqoaaxFXzUmzj2l.q2seeBrYzjstMqsqNIcS9t7l04kOmjUjC+H7NgaHIKuqYa0lj1rs6faNubMrTsoqrMoqMoH8Q3wmj0JdzYIaSetLMIsH+ycomlPioMvKdO9HgqFtD3ZywGbY15jth1Zf5o4zjkc4zaIqHaKLsfaoDVVS9L7032k+TV4F3SoaMGm6yaSyNM41zmyaawKrKYeUQW6tz1jpM4UIvxQdA7bZfwUWcN7dNCGYvPHqLeaBroB+uD3pS6Vi+UWML3K6JWCCwSS9.9Hfm4SYcOmCWzt5r1bZj83K7BJs.BCq1SStuM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