notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

< and > characters shouldn't be considered as brackets in C (and any other programming language)

Open Stokpan opened this issue 2 years ago • 2 comments

In most languages, < and > are comparison operators and they should not be considered as brackets.

notepad2 should therefore not be trying to match them by color or anything else.

Stokpan avatar Sep 06 '23 06:09 Stokpan

C has #include <header>, other language has C++ like generic type name <T>, or HTML/XML <tag>.

zufuliu avatar Sep 06 '23 09:09 zufuliu

HTML/XML isn't a programming language and angle brackets are essential markup, so you're right about it.

But in C and the rest, these are used mostly for comparisons and it's really confusing when I write expressions and see < and > become red when I move over them with the cursor.

Stokpan avatar Sep 10 '23 07:09 Stokpan