Comments (13)
Hi, thanks for the report and patch. Did 8500576 fix this for you?
from vim-css-color.
Sure did, thanks!
from vim-css-color.
Wait, it partially fixed it. The rgba function still isn't getting colorized.
from vim-css-color.
This has to be fixed now after 353a6a8… right?
(Errm, you’ll have to manually add an rgba()
unit in that place I guess, since I made all test files the same. Maybe I should have examples of every combination in every place after all…)
from vim-css-color.
I just updated, but it does not appear to be working still.
from vim-css-color.
Argh!
Hrmf. Can you put the cursor somewhere within that rgba()
value and do
:echo map(synstack(line("."), col(".")), "synIDattr(v:val, 'name')")
and tell me what that says?
from vim-css-color.
['lessDefinition', 'lessFunction']
from vim-css-color.
Hrm OK… lessDefinition
is part of the syntax group and should be getting highlighted.
Does the output of :echo keys(b:has_pattern_syn)
include that particular rgba()
value?
from vim-css-color.
Hmm, this bug stalled a long time ago.
@mtscout6: did the issue go away or did you just no longer care for some other reason (stopped using the plugin, or Vim, or whatever)?
from vim-css-color.
Still using the plugin, moved into a management position though so I haven't been in the weeds for a while. Unless anything has changed I'd imagine the problem still exists.
from vim-css-color.
In response to your question I missed years ago:
Source:
@farge-sochi-lys: rgba(184, 4, 128, 1);
@farge-sochi: rgba(150, 9, 120, 1);
@farge-sochi-mork: rgba(95, 9, 84, 1);
@farge-tekst: white;
@hex-white: #FFFFFF;
@hex-black: #000000;
p {
background-color: #FFFFFF;
background-color: rgba(184, 4, 128, 1);
}
With my cursor over the rgba
inside the p
selector.
:echo keys(b:has_pattern_syn)
E121: Undefined variable: b:has_pattern_syn
E116: Invalid arguments for function keys(b:has_pattern_syn)
E15: Invalid expression: keys(b:has_pattern_syn)
Press ENTER or type command to continue
from vim-css-color.
Oh, I overlooked that I renamed variable in the time since I wrote that comment. Can you try this again with echo keys(b:css_color_syn)
? (Doesn’t matter where the cursor is, btw, for that.)
from vim-css-color.
The output is:
['rgba(150, 9, 120, 1)', 'rgba(184, 4, 128, 1)', '#FFFFFF', '#000000', 'rgba(95, 9, 84, 1)']
from vim-css-color.
Related Issues (20)
- Toml Support HOT 5
- Plugin doesn't show colors HOT 7
- Recognise variable references in *.vim themes HOT 2
- Swap FG/BG highlight
- 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
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.