From f395b2637e4c1c1c312e74d861f7b7f6c34268bd Mon Sep 17 00:00:00 2001 From: Kyo Nagashima Date: Thu, 30 May 2013 02:44:30 +0900 Subject: [PATCH] add css-shapes.vim and test --- after/syntax/css/css-shapes.vim | 3 +++ test/test.css | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 after/syntax/css/css-shapes.vim diff --git a/after/syntax/css/css-shapes.vim b/after/syntax/css/css-shapes.vim new file mode 100644 index 0000000..35f33a3 --- /dev/null +++ b/after/syntax/css/css-shapes.vim @@ -0,0 +1,3 @@ +" TODO: create cssShapesProp group +syn match cssFontProp contained "\" +syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(inset-\)\=rectangle\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend diff --git a/test/test.css b/test/test.css index 6b71a2d..bba1008 100644 --- a/test/test.css +++ b/test/test.css @@ -382,6 +382,14 @@ display: auto; } +.shapes { + shape-image-threshold: rectangle(1px 1px 1198px 398px); + shape-inside: inset-rectangle(400px 100px 400px 200px); + shape-outside: circle(600px 200px 100px); + display: ellipse(0 0 250px 100px); + display: polygon(350px,75px 379px,161px 469px,161px 397px,215px 423px,301px 350px,250px 277px,301px 303px,215px 231px,161px 321px,161px); +} + .sizing { display: max-content; display: fit-content;