use of com.intellij.lang.Language in project idea-handlebars by dmarcotte.
the class HbCommentActionTest method testNativeInsertBlockComment2.
public void testNativeInsertBlockComment2() {
Language prevCommenterLang = HbConfig.getCommenterLanguage();
HbConfig.setCommenterLanguage(HbLanguage.INSTANCE);
doBlockCommentTest("{{#foo}}\n" + " <caret>{{bar}}\n" + "{{/foo}", "{{#foo}}\n" + " {{!--<caret>--}}{{bar}}\n" + "{{/foo}");
HbConfig.setCommenterLanguage(prevCommenterLang);
}
use of com.intellij.lang.Language in project idea-handlebars by dmarcotte.
the class HbCommentActionTest method testInsertNonDefaultLineComment.
public void testInsertNonDefaultLineComment() {
Language prevCommenterLanguage = HbConfig.getCommenterLanguage();
HbConfig.setCommenterLanguage(JavaLanguage.INSTANCE);
doLineCommentTest("{{#foo}}<caret>", "//{{#foo}}<caret>");
HbConfig.setCommenterLanguage(prevCommenterLanguage);
}
use of com.intellij.lang.Language in project idea-handlebars by dmarcotte.
the class HbCommentActionTest method testInsertNonDefaultBlockComment.
public void testInsertNonDefaultBlockComment() {
Language prevCommenterLanguage = HbConfig.getCommenterLanguage();
HbConfig.setCommenterLanguage(JavaLanguage.INSTANCE);
doBlockCommentTest("{{#foo}}<caret>", "{{#foo}}/*<caret>*/");
HbConfig.setCommenterLanguage(prevCommenterLanguage);
}
use of com.intellij.lang.Language in project idea-handlebars by dmarcotte.
the class HbCommentActionTest method testNativeInsertLineComment1.
public void testNativeInsertLineComment1() {
Language prevCommenterLang = HbConfig.getCommenterLanguage();
HbConfig.setCommenterLanguage(HbLanguage.INSTANCE);
doLineCommentTest("{{#foo}}<caret>", "{{!--{{#foo}}<caret>--}}");
HbConfig.setCommenterLanguage(prevCommenterLang);
}
use of com.intellij.lang.Language in project idea-handlebars by dmarcotte.
the class HbCommentActionTest method testNativeInsertBlockCommentWithSelection.
public void testNativeInsertBlockCommentWithSelection() {
Language prevCommenterLang = HbConfig.getCommenterLanguage();
HbConfig.setCommenterLanguage(HbLanguage.INSTANCE);
doBlockCommentTest("<selection><caret>{{#foo}}" + " {{bar}}</selection>" + "{{/foo}", "<selection>{{!--<caret>{{#foo}}" + " {{bar}}--}}</selection>" + "{{/foo}");
HbConfig.setCommenterLanguage(prevCommenterLang);
}
Aggregations