Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

🐛 Fix scope selectors for angle brackets #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
🐛 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.
  • Loading branch information
percontation committed Oct 2, 2021
commit 861a7a9dbbe793d8c0fcaa694132dc424a4353c0
4 changes: 2 additions & 2 deletions grammars/tree-sitter-cpp.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down