atom / bracket-matcher

Jump to brackets
MIT License
142 stars 98 forks source link

Tree-sitter bracket-matching doesn't work when followed by a comment #365

Closed chbk closed 5 years ago

chbk commented 5 years ago

Description

If an opening bracket is followed by a comment, it isn't highlighted by bracket-matcher when placing the cursor after it. Tested with language-go, language-javascript and language-c.

Steps to Reproduce

  1. Enable Settings > Core > Use Tree Sitter Parsers
  2. Copy-paste C code:
// put your cursor after {
// and compare

int main() {
  // comment
}

// with

int main() {

}

Versions

Atom : 1.32.1 Electron: 2.0.9 Chrome : 61.0.3163.100 Node : 8.9.3

rsese commented 5 years ago

Thanks @chbk - confirmed on macOS 10.12.6 with 1.34.0-nightly10 and Tree-sitter enabled.

maxbrunsfeld commented 5 years ago

Thanks for the report @chbk! This is fixed on the master branch of Atom.