From 223e8b55260e3b42f5bc91f69852687fe88a9801 Mon Sep 17 00:00:00 2001 From: Koen Lagveen Date: Sun, 11 Feb 2024 16:14:32 +0100 Subject: [PATCH] tests for function definition --- Tests/syntax_test_scss.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/syntax_test_scss.scss b/Tests/syntax_test_scss.scss index 15aaf25c..9ad80f2b 100644 --- a/Tests/syntax_test_scss.scss +++ b/Tests/syntax_test_scss.scss @@ -769,6 +769,15 @@ nav ul { // https://sass-lang.com/documentation/at-rules/function/ //============================================================================= @function fibonacci($n) { +//^^^^^^^^^^^^^^^^^^^^^^ meta.function.declaration.scss +//^^^^^^^ keyword.control.directive.scss +//<- punctuation.definition.keyword.scss +// ^^^^^^^^^ entity.name.function.scss +// ^^^^ meta.function.parameters.scss +// ^ punctuation.section.group.begin.scss +// ^^ variable.parameter.scss +// ^ punctuation.section.group.end.scss +// ^ punctuation.section.block.begin.css $sequence: 0 1; @for $_ from 1 through $n { $new: nth($sequence, length($sequence)) + nth($sequence, length($sequence) - 1);