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
|
package org.eclipse.fx.code.editor.ldef.langs
py {
partitioning {
partition __dftl_partition_content_type
partition __python_multiline_comment
partition __python_singleline_comment
partition __python_string
rule {
single_line __python_string '"' => '"' escaped by "\\"
single_line __python_singleline_comment '#' => ''
multi_line __python_multiline_comment "'''" => "'''"
single_line __python_string "'" => "'" escaped by "\\"
}
}
lexical_highlighting {
rule __dftl_partition_content_type whitespace javawhitespace {
default python_default
python_operator {
character [ ';', '.', '=', '/', '\\', '+', '-', '*', '<', '>', ':', '?', '!', ',', '|', '&', '^', '%', '~' ]
}
python_bracket {
character [ '(', ')', '{', '}', '[', ']' ]
}
python_keyword {
keywords [
'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'with', 'yield'
, 'return'
]
}
}
rule __python_multiline_comment {
default python_doc_default
}
rule __python_singleline_comment {
default python_doc_default
}
rule __python_string {
default phyton_string
}
}
integration {
javafx {
java "org.eclipse.fx.code.editor.langs.codegen.fx.python" {
project : "org.eclipse.fx.code.editor.langs.codegen.fx"
}
}
}
}
|