Sublime Forum

What is this red bar in my diffs?

#1

I’m setting this red bars in my diff. But I’m not sure what they mean. The file content on that line is the same before/after, so what is it saying?

0 Likes

#2

Here is another example:
example%202

0 Likes

#3

That is from the syntax highlighting showing invalid code.

0 Likes

#4

huh - I am confused as to why sublime merge things that is invalid code? My project builds and runs. It’s valid typescript…

Maybe I’m misunderstanding what ‘invalid’ means in this context? Or maybe sublime merge is incorrectly highlighting these characters?

0 Likes

#5

It looks like you’re writing tsx, do your files also have a .tsx extension?

0 Likes

#6

Yes good eye - these are indeed .tsx files. And they do have a .tsx extension.

0 Likes

#7

I want to say this is newish behavior, like this started happening after one of the recent updates. But I could be home, don’t remember specifically.

0 Likes

#8

This would be an issue with the syntax definitions. If you have a snippet of code that reproduces the issue you can file an issue on the packages repository.

0 Likes