Skip to main content
summaryrefslogtreecommitdiffstats
blob: 35745da6b1968bfb27a54e96c44fa04a228435a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.eclipse.fx.code.editor.ldef.langs.fx.ceylon;

public class CeylonPartitionScanner extends org.eclipse.jface.text.rules.RuleBasedPartitionScanner {
	public CeylonPartitionScanner() {
		org.eclipse.jface.text.rules.IPredicateRule[] pr = new org.eclipse.jface.text.rules.IPredicateRule[4];
		pr[0] = new org.eclipse.jface.text.rules.SingleLineRule(
			  "//"
			, ""
			, new org.eclipse.jface.text.rules.Token("__ceylon_single_line_comment")
			, (char)0
			, true);
		pr[1] = new org.eclipse.jface.text.rules.MultiLineRule(
			  "/**"
			, "*/"
			, new org.eclipse.jface.text.rules.Token("__ceylon_multi_line_api_comment")
			, (char)0
			, false);
		pr[2] = new org.eclipse.jface.text.rules.MultiLineRule(
			  "/*"
			, "*/"
			, new org.eclipse.jface.text.rules.Token("__ceylon_multi_line_comment")
			, (char)0
			, false);
		pr[3] = new org.eclipse.jface.text.rules.MultiLineRule(
			  "\""
			, "\""
			, new org.eclipse.jface.text.rules.Token("__ceylon_string")
			, '\\'
			, false);
		setPredicateRules(pr);
	}
}

Back to the top