diff options
Diffstat (limited to 'bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/java/java.ldef')
-rw-r--r-- | bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/java/java.ldef | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/java/java.ldef b/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/java/java.ldef new file mode 100644 index 000000000..7b0f153a8 --- /dev/null +++ b/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/java/java.ldef @@ -0,0 +1,66 @@ +package org.eclipse.fx.code.editor.ldef.langs + +^java { + partitioning { + partition __dftl_partition_content_type + partition __java_multi_line_api_comment + partition __java_single_line_comment + partition __java_multi_line_comment + partition __java_string + rule { + single_line __java_single_line_comment "//" => '' + multi_line __java_multi_line_api_comment "/**" => "*/" + multi_line __java_multi_line_comment "/*" => "*/" + single_line __java_string "'" => "'" escaped by "\\" + single_line __java_string '"' => '"' escaped by "\\" + } + } + lexical_highlighting { + rule __dftl_partition_content_type { + default java_default + java_operator { + character [ ';', '.', '=', '/', '\\', '+', '-', '*', '<', '>', ':', '?', '!', ',', '|', '&', '^', '%', '~' ] + } + java_bracket { + character [ '(', ')', '{', '}', '[', ']' ] + } + java_keyword { + keywords [ "abstract", "break", "case", "catch", "class", "const", "continue", + "default", "do", "else", "extends", "final", "finally", "for", + "goto", "if", "implements", "import", "instanceof", "interface", "native", + "new", "package", "private", "protected", "public", "static", "super", + "switch", "synchronized", "this", "throw", "throws", "transient", "try", + "volatile", "while", "interface", "enum", "return" + ] + } + java_buitin_type { + keywords [ "void", "boolean", "char", "byte", "short", "strictfp", "int", "long", "float", "double" ] + } + java_constant { + keywords [ "true", "false", "null" ] + } + java_annotation { + pattern "@" containing "\\w" + } + } + rule __java_multi_line_api_comment { + default java_apidoc + } + rule __java_multi_line_comment { + default java_doc_default + } + rule __java_single_line_comment { + default java_doc_default + } + rule __java_string { + default java_string + } + } + integration { + javafx { + java "org.eclipse.fx.code.editor.ldef.langs.fx.java" { + project : "org.eclipse.fx.code.editor.ldef.langs.fx" + } + } + } +}
\ No newline at end of file |