Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some CSS functions not highlighted correctly #40

Open
8 tasks
hail2u opened this issue Jun 28, 2016 · 1 comment
Open
8 tasks

Some CSS functions not highlighted correctly #40

hail2u opened this issue Jun 28, 2016 · 1 comment
Labels

Comments

@hail2u
Copy link
Owner

hail2u commented Jun 28, 2016

  • invert()
  • running()
  • element()
  • fit-content()
  • inset()
  • circle()
  • ellipse()
  • fade()

There are many conflicts around syntaxes.
#36 and #39 are merged to this issue.

@hail2u hail2u added the bug label Jun 28, 2016
@hail2u hail2u changed the title Some CSS functions not highlighted corrctly Some CSS functions not highlighted correctly Dec 17, 2017
@ObserverOfTime
Copy link

ObserverOfTime commented Nov 15, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants