atom / language-css

CSS package for Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meta.property-list.css missing in Tree-sitter

Arcanemagus opened this issue · comments

Prerequisites

Description

Property lists are missing the meta.property-list.css scope, leading to issues like autocomplete-css not giving any suggestions.

Steps to Reproduce

  1. As the Tree-sitter CSS grammar is currently only enabled in HTML <style> blocks, fist create an HTML file in Atom with the following contents:
    <style media="screen">
      .class {
        margin: 0 auto;
        
      }
    </style>
  2. Place the cursor anywhere within the list of properties (e.g. line 3)
  3. Run the Editor: Log Cursor Scopes command

Expected behavior:

A list of scopes that includes meta.property-list.css, such as this from the TextMate grammar:
image

Actual behavior:

Missing meta.property-list.css:
image

Reproduces how often:

100% of the time.

Versions

OS: Windows 10 x64

Atom    : 1.34.0-nightly9
Electron: 2.0.12
Chrome  : 61.0.3163.100
Node    : 8.9.3
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.34.0-nightly9
python 2.7.15
git 2.19.1.windows.1
visual studio 2015

Additional Information

Originally brought up by @Yurickh in atom/atom#18327 (comment).

Is this an issue with other tree-sitter grammars? In addition to language-css.

@Ben3eeE any news about this ? IIUC work need to be done in https://github.com/atom/autocomplete-css. Can you share some details to get potential contributors on board please ?