From 861a7a9dbbe793d8c0fcaa694132dc424a4353c0 Mon Sep 17 00:00:00 2001 From: Ryan Goulden Date: Sat, 2 Oct 2021 05:50:05 -0700 Subject: [PATCH] :bug: Fix scope selectors for angle brackets tree-sitter-cpp removed the relational_expression node type a while ago, and instead just uses binary_expression for it now. This commit fixes Atom's highlighting of less-than and greater-than in C++, which currently don't highlight as operators. --- grammars/tree-sitter-cpp.cson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-cpp.cson b/grammars/tree-sitter-cpp.cson index d8fb0e4..f1ffd8d 100644 --- a/grammars/tree-sitter-cpp.cson +++ b/grammars/tree-sitter-cpp.cson @@ -224,8 +224,8 @@ scopes: '"=="': 'keyword.operator' '"!"': 'keyword.operator' '"!="': 'keyword.operator' - 'relational_expression > "<"': 'keyword.operator' - 'relational_expression > ">"': 'keyword.operator' + 'binary_expression > "<"': 'keyword.operator' + 'binary_expression > ">"': 'keyword.operator' '">="': 'keyword.operator' '"<="': 'keyword.operator' '"&&"': 'keyword.operator'