mrjones2014 / nvim-ts-rainbow

Rainbow parentheses for neovim using tree-sitter.
Apache License 2.0
174 stars 4 forks source link

The last line of a buffer is not correctly highlighted #15

Open registerGen opened 1 year ago

registerGen commented 1 year ago

Describe the bug

The last line of a buffer is not correctly highlighted.

Steps to reproduce

Paste the following code, and edit the main() function.

#include <iostream>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << a + b << endl;
  return 0;
}

Expected behavior

The last line is highlighted by red.

Screenshots

image

After editing:

image