language-css icon indicating copy to clipboard operation
language-css copied to clipboard

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

Open Arcanemagus opened this issue 7 years ago • 2 comments

Prerequisites

  • [x] Put an X between the brackets on this line if you have done all of the following:
    • Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
    • Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
    • Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
    • Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
    • Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

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 https://github.com/atom/atom/issues/18327#issuecomment-436676392.

Arcanemagus avatar Nov 07 '18 18:11 Arcanemagus

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

Ben3eeE avatar Nov 07 '18 18:11 Ben3eeE

@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 ?

G-Ray avatar Sep 04 '19 21:09 G-Ray