Comments (1)
I noticed that rotate()
was not highlighted properly and was about to submit an issue when I saw this one.
I have a quick bodge that should also work for the other functions:
diff --git a/after/syntax/css/logical-1.vim b/after/syntax/css/logical-1.vim
index d944ff8..392fbfd 100644
--- a/after/syntax/css/logical-1.vim
+++ b/after/syntax/css/logical-1.vim
@@ -2,4 +2,5 @@ syn match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
syn match cssFontProp contained "\<\(margin\|inset\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
syn match cssFontProp contained "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
syn match cssFontProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>"
-syn keyword cssFontAttr contained logical physical rotate
+syn keyword cssFontAttr contained logical physical
+syn match cssFontAttr "\<rotate\%(\s*(\)\@!"
I could go through the other functions and submit a PR, unless you'd prefer to come up with something better.
from vim-css3-syntax.
Related Issues (20)
- fit-content() function is not highlighted correctly
- cssnext support? HOT 1
- Distribute as Vim 8.0 package HOT 2
- `system-ui` font family
- Extremely slow on startup HOT 2
- touch-action property
- Makes file very slow to open HOT 1
- flex-grow not highlighted HOT 1
- ease-in-out not highlighted HOT 1
- make it support for qss HOT 4
- Highlight for nested properties? HOT 2
- WebVTT ::cues HOT 1
- Incorrect highlighting for: space-{around|evenly|between} and ease-in-out HOT 4
- space-between not highlight HOT 1
- (Optional) support for nested selectors HOT 4
- Submit these improvements as PRs to the official Vim CSS syntax file HOT 1
- Inline styles syntax highlight HOT 1
- master -> main HOT 1
- Color preview is also applied to CSS property names HOT 2
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-css3-syntax.