abe33 / abe33/atom-pigments

CSS variables not being evaluated/highlighting

Aberta
#462 1 comentário 0 reações 0 responsáveis Ver no GitHub
bug help wanted
Linguagem predominante
CoffeeScript
Estrelas
518
Forks
70
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I use Pigments in SVG files, and while the colors are highlighted in CSS variable declarations, they are _not_ highlighted when the variable is used:
![svg](https://user-images.githubusercontent.com/15368010/100663626-7765e700-33bb-11eb-857e-d951dc373f0b.png)

I checked to see if it was just a problem with inline properties, or just SVG, but it also occurs in HTML:
![html](https://user-images.githubusercontent.com/15368010/100664026-f824e300-33bb-11eb-990e-c9beddece09b.png)

When I run `Pigments: Reload` on an open project I get the following:
```
Found:

90 path(s)
0 variables(s) including 0 color(s)
```
(there are a whole lot of color variables in this project)

From having a look through the issues, it seems that this is working for most other people - is there a setting that I should check on? I think I still have mostly the defaults though.

----

Pigments version: **0.40.6**
Atom version: **1.53.0**
OS: **elementary OS 5.17** (Built on Ubuntu 18.04.4 LTS)

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

The issue is about CSS variable highlighting in SVG and HTML files not working. Start by examining the Pigments package's color parsing logic, likely in the main CoffeeScript files. Look for how variables are detected and highlighted in different file types. Check the project's variable extraction and matching code. Run the package in Atom's dev mode to see debug output and test changes.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
css
Domínio
devtools
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.