diff options
author | Tom Schindl | 2015-07-30 19:39:24 +0000 |
---|---|---|
committer | Tom Schindl | 2015-07-30 19:39:24 +0000 |
commit | 8ad258e77e74befed24d7f7023044e586619d218 (patch) | |
tree | 150c91243c0b66aa395a031ddb1f9951b27fcce6 | |
parent | ba02327329eba337796f2831d04feaffb9605723 (diff) | |
download | org.eclipse.efxclipse-8ad258e77e74befed24d7f7023044e586619d218.tar.gz org.eclipse.efxclipse-8ad258e77e74befed24d7f7023044e586619d218.tar.xz org.eclipse.efxclipse-8ad258e77e74befed24d7f7023044e586619d218.zip |
Bug 473963 - Add project storing ldef-files and css files
-rw-r--r-- | bundles/code/ldef-store/.project | 17 | ||||
-rw-r--r-- | bundles/code/ldef-store/dart/dark-highlight.css | 65 | ||||
-rw-r--r-- | bundles/code/ldef-store/dart/dart.ldef | 75 | ||||
-rw-r--r-- | bundles/code/ldef-store/dart/highlight.css | 65 |
4 files changed, 222 insertions, 0 deletions
diff --git a/bundles/code/ldef-store/.project b/bundles/code/ldef-store/.project new file mode 100644 index 000000000..991ba394b --- /dev/null +++ b/bundles/code/ldef-store/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ldef-store</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> + </natures> +</projectDescription> diff --git a/bundles/code/ldef-store/dart/dark-highlight.css b/bundles/code/ldef-store/dart/dark-highlight.css new file mode 100644 index 000000000..10272ffff --- /dev/null +++ b/bundles/code/ldef-store/dart/dark-highlight.css @@ -0,0 +1,65 @@ +.styled-text-area .dart.dart_default { + -styled-text-color: #b8c4d1; +} + +.styled-text-area .dart.dart_operator { + -styled-text-color: #b8c4d1; +} + +.styled-text-area .dart.dart_bracket { + -styled-text-color: #b8c4d1; +} + +.styled-text-area .dart.dart_keyword { + -styled-text-color: #d78b40; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_keyword_1 { + -styled-text-color: #d78b40; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_keyword_2 { + -styled-text-color: #d78b40; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_single_line_comment { + -styled-text-color: #929292; +} + +.styled-text-area .dart.dart_multi_line_comment { + -styled-text-color: #929292; +} + +.styled-text-area .dart.dart_string { + -styled-text-color: #7c986c; +} + +.styled-text-area .dart.dart_string_inter { + -styled-text-color: #7c986c; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_builtin_types { + -styled-text-color: #74a567; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_doc { + -styled-text-color: #74a567; +} + +.styled-text-area .dart.dart_doc_reference { + -styled-text-color: #74a567; + -fx-font-weight: bold; +} + +.dart-element-name { + +} + +.dart-type-info { + -fx-fill: lightgray; +}
\ No newline at end of file diff --git a/bundles/code/ldef-store/dart/dart.ldef b/bundles/code/ldef-store/dart/dart.ldef new file mode 100644 index 000000000..742bd5f10 --- /dev/null +++ b/bundles/code/ldef-store/dart/dart.ldef @@ -0,0 +1,75 @@ +package at.bestsolution.sample.code + +dart { + partitioning { + partition __dftl_partition_content_type + partition __dart_singlelinedoc_comment + partition __dart_multilinedoc_comment + partition __dart_singleline_comment + partition __dart_multiline_comment + partition __dart_string + rule { + single_line __dart_string "'" => "'" + single_line __dart_string '"' => '"' + single_line __dart_singlelinedoc_comment '///' => '' + single_line __dart_singleline_comment '//' => '' + multi_line __dart_multilinedoc_comment '/**' => '*/' + multi_line __dart_multiline_comment '/*' => '*/' + } + } + lexical_highlighting { + rule __dftl_partition_content_type whitespace javawhitespace { + default dart_default + dart_operator { + character [ ';', '.', '=', '/', '\\', '+', '-', '*', '<', '>', ':', '?', '!', ',', '|', '&', '^', '%', '~' ] + } + dart_bracket { + character [ '(', ')', '{', '}', '[', ']' ] + } + dart_keyword { + keywords [ "break", "case", "catch", "class", "const", "continue", "default" + , "do", "else", "enum", "extends", "false", "final", "finally", "for" + , "if", "in", "is", "new", "null", "rethrow", "return", "super" + , "switch", "this", "throw", "true", "try", "var", "void", "while" + , "with" ] + } + dart_keyword_1 { + keywords [ "abstract", "as", "assert", "deferred" + , "dynamic", "export", "external", "factory", "get" + , "implements", "import", "library", "operator", "part", "set", "static" + , "typedef" ] + } + dart_keyword_2 { + keywords [ "async", "async*", "await", "sync*", "yield", "yield*" ] + } + dart_builtin_types { + keywords [ "num", "String", "bool", "int", "double", "List", "Map" ] + } + } + rule __dart_singlelinedoc_comment { + default dart_doc + dart_doc_reference { + single_line "[" => "]" + } + } + rule __dart_multilinedoc_comment { + default dart_doc + dart_doc_reference { + single_line "[" => "]" + } + } + rule __dart_singleline_comment { + default dart_single_line_comment + } + rule __dart_multiline_comment { + default dart_multi_line_comment + } + rule __dart_string { + default dart_string + dart_string_inter { + single_line "${" => "}" + //TODO We need a $ => IDENTIFIER_CHAR rule + } + } + } +}
\ No newline at end of file diff --git a/bundles/code/ldef-store/dart/highlight.css b/bundles/code/ldef-store/dart/highlight.css new file mode 100644 index 000000000..b7d8c39d1 --- /dev/null +++ b/bundles/code/ldef-store/dart/highlight.css @@ -0,0 +1,65 @@ +.styled-text-area .dart.dart_default { + -styled-text-color: rgb(0, 0, 0); +} + +.styled-text-area .dart.dart_operator { + -styled-text-color: rgb(0, 0, 0); +} + +.styled-text-area .dart.dart_bracket { + -styled-text-color: rgb(0, 0, 0); +} + +.styled-text-area .dart.dart_keyword { + -styled-text-color: rgb(127, 0, 85); + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_keyword_1 { + -styled-text-color: rgb(127, 0, 85); + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_keyword_2 { + -styled-text-color: rgb(127, 0, 85); + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_single_line_comment { + -styled-text-color: rgb(63, 127, 95); +} + +.styled-text-area .dart.dart_multi_line_comment { + -styled-text-color: rgb(63, 127, 95); +} + +.styled-text-area .dart.dart_string { + -styled-text-color: rgb(42, 0, 255); +} + +.styled-text-area .dart.dart_string_inter { + -styled-text-color: rgb(42, 0, 255); + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_builtin_types { + -styled-text-color: #74a567; + -fx-font-weight: bold; +} + +.styled-text-area .dart.dart_doc { + -styled-text-color: rgb(63, 95, 191); +} + +.styled-text-area .dart.dart_doc_reference { + -styled-text-color: rgb(63, 95, 191); + -fx-font-weight: bold; +} + +.dart-element-name { + +} + +.dart-type-info { + -fx-fill: lightgray; +}
\ No newline at end of file |