Skip to main content
summaryrefslogtreecommitdiffstats
blob: a7cd617804842d521060afb83d7029f9291500f7 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.eclipse.fx.code.editor.ldef.langs

js {
	partitioning {
		partition __dftl_partition_content_type
		partition __js_single_line_comment
		partition __js_multi_line_comment
		partition __js_string
		rule {
			single_line __js_single_line_comment 	"//" 	=> ''
			multi_line __js_multi_line_comment 		"/*" 	=> "*/"
			single_line __js_string 				"'"	 	=> "'" escaped by "\\"
			single_line __js_string 				'"' 	=> '"' escaped by "\\"
		}
	}
	lexical_highlighting {
		rule __dftl_partition_content_type whitespace javawhitespace {
			default js_default
			js_operator {
				character [ ';', '.', '=', '/', '\\', '+', '-', '*', '<', '>', ':', '?', '!', ',', '|', '&', '^', '%', '~' ]
			}
			js_bracket {
				character [ '(', ')', '{', '}', '[', ']' ]
			}
			js_keyword {
				keywords [  "break", 	"case", 	"catch", 		"continue",
	    					"debugger",	"default",	"delete",		"do",
	    					"else",		"finally",	"for",			"function",
	    					"if",		"in",		"instanceof",	"new",
	    					"return",	"switch",	"this",			"throw",
	    					"try",		"typeof",	"var",			"void",
	    					"while",	"with" ]
			}
		}
		rule __js_single_line_comment {
			default js_doc_default
		}
		rule __js_multi_line_comment {
			default js_doc_default
		}
		rule __js_string {
			default js_string
		}
	}
	integration {
		javafx {
			java "org.eclipse.fx.code.editor.ldef.langs.fx.js" {
				project : "org.eclipse.fx.code.editor.ldef.langs.fx"
			}
		}
	}
}

Back to the top