Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 不';t work&-Sass 3.4.5中的后缀_Ruby_Sass_Phpstorm_Css Preprocessor - Fatal编程技术网

Ruby 不';t work&-Sass 3.4.5中的后缀

Ruby 不';t work&-Sass 3.4.5中的后缀,ruby,sass,phpstorm,css-preprocessor,Ruby,Sass,Phpstorm,Css Preprocessor,我决定减少对Sass的更改,并使用长类行class=“main-content\uu list-item\uu link”。用更少的钱就很容易了:你只需要&然后像这样得到smth: .main { &-content { &__list-item { &__link {...} } } } 但它不适用于PhpStorm和ruby。除此之外,我不能使用&-suffix,尽管它似乎必须在3.3.0版本(

我决定减少对Sass的更改,并使用长类行
class=“main-content\uu list-item\uu link”
。用更少的钱就很容易了:你只需要&然后像这样得到smth:

.main {
    &-content {
        &__list-item {
            &__link {...}
        }
    }
}
但它不适用于PhpStorm和ruby。除此之外,我不能使用
&-suffix
,尽管它似乎必须在3.3.0版本(我有3.4.5)中才能使用。但是-不,我的IDE抛出了一个关于“意外标识符”的错误。
预印本可以做到这一点,但在PhpStorm中,这一行标记为错误。Ruby不理解
&-后缀
-没有任何现有版本,我正在尝试


所以我需要放弃,只是少用一些,或者有可能在.sass/.scss文件中使用
&-suffix
?您不知道吗?

该功能在SASS中还不可用,但即将推出。看


请尝试最新的SASS版本,以检查它现在是否工作。

SASS 3.3.*支持包含在PHPStorm 8中-请参阅。PHPStorm 8.0.1中的代码片段未报告任何错误。PHPStorm 7中的代码片段在fileWatcher检查“触发器监视程序不考虑语法错误”中未报告任何错误。

根据,它是在3.3.0中引入的:父选择器
&
,可与标识符后缀一起使用。例如,
&-suffix
&\u suffix
现在是合法的。”你的代码适用于3.3.14和3.4.4(顺便说一句,
&-
是前缀,而不是后缀)1)那是什么IDE版本?2)请截图显示错误。我也有同样的问题。我使用phpstorm 7和SASS 3.4.20