From f986d9a0ea1feff1388b5c7d297ec3faa19036a7 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 9 Sep 2022 23:55:43 +0530 Subject: [FEATURE] Add support for sass variables Import support import using use and import keyword multiple imports in single line multiple imports in multiple lines ( using commas ) recursive imports watch imports for changes and automatically rehighlight buffer buffer variables recursive variables support multiple variables in single line parse imported files only when they are changed Loosely based on https://github.com/norcalli/nvim-colorizer.lua/pull/22/files --- test/sample.scss | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/sample.scss (limited to 'test/sample.scss') diff --git a/test/sample.scss b/test/sample.scss new file mode 100644 index 0000000..9384fd5 --- /dev/null +++ b/test/sample.scss @@ -0,0 +1,25 @@ +@import "scss/colors1"; + +$dd: $test7; +$test0: $color1; + +// recursive definitions +$d: $test1; +$dark: $d; +$e: $dark; +$f: $e; +$g: $f; +$h: $g; +$test1: $color2; + +$test2: hotpink; +$test3: $color3; +$test4: $color4; +$test5: rgb(123, 255, 123); +$test6: $color6; // this should be absent and this comment shoudl be ignored $color6: black +$test7: rgba(255, 123, 123, 0.9); +$test8: $color8; +$test9: $color9; +$test10: $color10; +$test11: $color11; +$aki: red; -- cgit v1.2.3-70-g09d2