You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent scss releases have put a focus on using functions provided by modules instead of global ones (see here for details).
When I have a function call with a variable and a string inside that looks something like mapget($grid-breakpoints, md); the mapget is recognized as @function.scss, the brackets get recognized as @punctuation.bracket.scss, the $grid-breakpoints gets recognized as @variable.parameter.scss and the md gets recognized as @string.scss.
When I call the same function, but correctly written as a module like map.get($grid-breakpoints, md); the map.get gets recognized as @string.scss, the brackets still get recognized as @punctuation.bracket.scss, but then everything inside isn't recognized at all.
Thanks for your time!
The text was updated successfully, but these errors were encountered:
prurigro
changed the title
Module functions break the whole line
Module functions break the arguments
Mar 14, 2024
Recent scss releases have put a focus on using functions provided by modules instead of global ones (see here for details).
When I have a function call with a variable and a string inside that looks something like
mapget($grid-breakpoints, md);
themapget
is recognized as@function.scss
, the brackets get recognized as@punctuation.bracket.scss
, the$grid-breakpoints
gets recognized as@variable.parameter.scss
and themd
gets recognized as@string.scss
.When I call the same function, but correctly written as a module like
map.get($grid-breakpoints, md);
themap.get
gets recognized as@string.scss
, the brackets still get recognized as@punctuation.bracket.scss
, but then everything inside isn't recognized at all.Thanks for your time!
The text was updated successfully, but these errors were encountered: