Fix some commenting issues

This commit is contained in:
Oystein Kristoffer Tveit 2021-02-24 22:59:00 +01:00
parent 80ebb93f5c
commit 5d25c125e1
6 changed files with 12 additions and 5 deletions

View File

@ -48,7 +48,7 @@ public class Java implements ProgrammingLanguage {
e("\\b[A-Z]\\w+\\b", "identifier"), e("\\b[A-Z]\\w+\\b", "identifier"),
e("\\b(" + String.join("|", keywords) + ")\\b", e("\\b(" + String.join("|", keywords) + ")\\b",
"keyword"), "keyword"),
e("(?://.*)|(?:\\/?\\s?\\*.*)", "comment") e("(?://.*)|/\\*(?:\\n|.)*\\*/", "comment")
); );
public String getName() { public String getName() {

View File

@ -21,6 +21,7 @@ public class Markdown implements ProgrammingLanguage {
private static final Map<Pattern, String> pattern = private static final Map<Pattern, String> pattern =
Map.ofEntries( Map.ofEntries(
e("<!--(?:.|\n)*-->", "comment"),
e("##### .*", "ssssheader"), e("##### .*", "ssssheader"),
e("#### .*", "sssheader"), e("#### .*", "sssheader"),
e("### .*", "ssheader"), e("### .*", "ssheader"),

View File

@ -49,7 +49,7 @@
} }
.code-area .comment { .code-area .comment {
-fx-fill: -light-bg-color; -fx-fill: -main-comment-color;
} }
.code-area .string { .code-area .string {

View File

@ -2,6 +2,10 @@
-test-color: #193814 -test-color: #193814
} }
.code-area .comment {
-fx-fill: -main-comment-color;
}
.code-area .header { .code-area .header {
-fx-fill: -main-green-color; -fx-fill: -main-green-color;
-fx-font-size: 200%; -fx-font-size: 200%;

View File

@ -13,6 +13,7 @@
-main-blue-color: #66d9ef; -main-blue-color: #66d9ef;
-main-magenta-color: #ae81ff; -main-magenta-color: #ae81ff;
-main-cyan-color: #a1efe4; -main-cyan-color: #a1efe4;
-main-comment-color: -light-bg-color;
-banana-focus-color: #fffb00; -banana-focus-color: #fffb00;
} }

View File

@ -1,9 +1,9 @@
* { * {
-main-fg-color: #002b36; -main-fg-color: #657b83;
-main-bg-color: #eee8d5; -main-bg-color: #fdf6e3;
-light-bg-color: #dfd6e3; -light-bg-color: #dfd6e3;
-dark-bg-color: #93a1a1; -dark-bg-color: #93a1a1;
-shadow-bg-color: #c5bec9; -shadow-bg-color: #c5bec9;
@ -13,6 +13,7 @@
-main-blue-color: #268bd2; -main-blue-color: #268bd2;
-main-magenta-color: #d33682; -main-magenta-color: #d33682;
-main-cyan-color: #2aa198; -main-cyan-color: #2aa198;
-main-comment-color: #586e75;
-banana-focus-color: #fffb00; -banana-focus-color: #fffb00;
} }