Comments (4)
Thank you for reporting this.
the highlighting of vim-color-css seems to not be affected, at least at first glance.
It will indeed not be affected. Only performance might, in very bloated files.
I’m not sure what’s going on as ⓐ I don’t think I can reproduce the error despite using Vim 9 as my daily driver (but only 9.0.0065; who knows if that’s relevant) and ⓑ there’s quite a bit going on in that line but the error does not obviously seem connected to any of it, and so the change you made does not obviously look like it should fix it.
Does opening an empty HTML/Markdown file throw the error too?
If you are willing to help me narrow this down, can you try this line instead and tell me if that also triggers the error?
call filter( range( line('w0'), line('w$') ), 'substitute( getline(v:val), b:css_color_pat, ''\=s:create_syn_match()'', ''g'' )' )
from vim-css-color.
I went about recreating a clean vim config environment to test this issue, and the issues magically disappeared. I deleted my vim directory and checking it out again from my dotfiles repo seems to have fixed it magically. So I guess either I made a mistake the first time around, or an update (though my vim version didn't change), or something tweaking a long the way fixed something.
So uhh... sorry for crying wolf.
from vim-css-color.
No worries, happens to all of us. 🙂 Thanks for going to the trouble of trying to reproduce the issue cleanly, even if the outcome was that it just up and disappeared (sort of an inverse of the stages of debugging I guess (“how did that ever not work?”)). I’d rather err on the side of the occasional false positive than an occasional real issue going unreported, even if it means wasting a few minutes.
from vim-css-color.
I am also having this same issue with markdown files.
I ran your debug line from the comment above in command mode and as a vimscript and got
E120: Using <SID> not in a script context: s:create_syn_match
As a vimscript
:so debug.vim
Error detected while processing /Users/whoami/code/team-utils/debug.vim:
line 1:
E117: Unknown function: s:create_syn_match
Press ENTER or type command to continue
I won't pretend to be a vimscript expert, and I'm pretty swamped to understand loading files today but I can run further debugging if you need.
And to answer your other question about it happening in an empty md
file, yes. It still happens. Seems to be just any md
filetype. However, it isn't happening on html
files like the original issue message.
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
- 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.