Comments (8)
I cannot reproduce this. If you move your cursor onto an incorrectly highlighted word and give this command,
:echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
… what is the output?
Which other color keywords does this affect? “Some” isn’t much help… 😄
from vim-css-color.
Yeah it wasn't helpful was it? lol. Sorry, was in a rush.
One of the colors I've used is purple. It looks like the color isn't shown but when you enter the hex value of it, the color pops up. In regards to the output I get:
['cssDefinition', 'cssAttrRegion', 'BG800080']
Attached is a screenshot.
from vim-css-color.
OK, so, that bit looks right. I guess we’ll have to play 20 questions; sorry for the bother.
- What does
:hi BG800080
say in that situation? - If you type
#800080
instead ofpurple
, what colour do you get? - What does
:hi BGa020f0
say in that situation?
from vim-css-color.
Np.
Answer to question 1:
Answer to questions 2 & 3:
Thing is after I typed #BG800080 then it worked as per the screenshot.
Now when I quit vim and made up a new .css stylesheet and typed the color in again, it didn't work again.
from vim-css-color.
headscratch
Is the output of :hi BG800080
different after you type #800080
, once purple
is highlighted correctly, compared to the output before?
from vim-css-color.
Yes it is. No need to show me, I found it. This is painfully stupid.
It’s a late effect of #16, itself long fixed in commit c8ae081. Once upon a time, the mapping of RGB values to 256-colour terminal palette indices was recalculated at every Vim startup. Then, at some point, to make startup faster, I dumped the results of the conversion and hardcoded them in the script. But I did this back when the mapper function had a simple stupid bug that completely broke many of its results. As a result I hardcoded a bunch of broken outputs into the script. Arrrrrrgghhh. Later I fixed the bug but did not recompute the indices, so they’ve stayed broken for another 2½ years.
from vim-css-color.
There you go. Thank you for the report.
from vim-css-color.
Cool. Glad to help out. Thanks for resolving the issue!
from vim-css-color.
Related Issues (20)
- E121: Undefined variable: b:css_color_pat in netrw
- Neovim tree sitter support HOT 20
- support for svelte files HOT 2
- Plugin is not compatible with nvim-treesitter HOT 1
- No colors in .h files in neovim
- It would be nice to support SVG files HOT 2
- create_matches function takes 1.4 s on large nix files
- NeoVim tree sitter support HOT 1
- Error with files with no highlightable targets in Vim9 HOT 4
- Erroring in java file HOT 2
- Add support for LaTeX? HOT 1
- Add support for template strings
- Does not work HOT 5
- incompatible with nvim-treesitter HOT 2
- [Feature request]: provide a command to make it asynchronous.
- truecolor terminals and termguicolors HOT 5
- Incorrect Highlighting of C Macros
- How to enable color highlighting for strings in CSS
- Error in C comments
- Support CSS Color Module Level 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-css-color.