atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

Numbers do not have numeric scope/class with tree-sitters #295

Closed binaryfunt closed 5 years ago

binaryfunt commented 5 years ago

Prerequisites

Description

Numbers have scope constant.language instead of constant.numeric as in other languages e.g. JavaScript.

Steps to Reproduce

  1. In core settings make sure "use tree-sitters" is ticked
  2. Open a Python file and type e.g. a = 25
  3. On 25 open the command palette, type "log cursor scope" and hit enter

Versions

Atom: 1.34.0 Electron: 2.0.16 Windows: 10 v1803

Ben3eeE commented 5 years ago

https://github.com/atom/language-python/pull/288 fixes this.