mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
WI-11694 Include Haskell custom type in distribution
This commit is contained in:
+11
@@ -206,4 +206,15 @@ public class CustomFileTypeEditorTest extends LightCodeInsightTestCase {
|
||||
iterator = highlighter.createIterator(27);
|
||||
assertEquals(CustomHighlighterTokenType.STRING, iterator.getTokenType());
|
||||
}
|
||||
|
||||
public void testHaskel() throws Exception {
|
||||
EditorHighlighter highlighter = HighlighterFactory.createHighlighter(getProject(), "A.hs");
|
||||
// 0123456789012345678 9 0123 45 6 7
|
||||
highlighter.setText("{-# #-} module");
|
||||
HighlighterIterator iterator = highlighter.createIterator(2);
|
||||
assertEquals(CustomHighlighterTokenType.MULTI_LINE_COMMENT, iterator.getTokenType());
|
||||
|
||||
iterator = highlighter.createIterator(12);
|
||||
assertEquals(CustomHighlighterTokenType.KEYWORD_1, iterator.getTokenType());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user