Skip to content

Commit

Permalink
tests for function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Feb 11, 2024
1 parent 9b55ee1 commit 223e8b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/syntax_test_scss.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 223e8b5

Please sign in to comment.