-
Notifications
You must be signed in to change notification settings - Fork 59
Syntax highlighting is not working with comment #114
Comments
Interesting. Several observations:
Works: public static <M extends Map<Integer, String>> boolean TestGet(Supplier<M> c) {
// works
} Does not work: public static <M extends Map<Integer, String>>
boolean TestGet(Supplier<M> c) {
// does not work
}
Works: private JPanel plottingSurface = /*new JPanel() {
@Override
public Dimension getPreferredSize() {
return new Dimension(400, 300);
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
}
}*/; Does not work: private JPanel plottingSurface = new /*JPanel() {
@Override
public Dimension getPreferredSize() {
return new Dimension(400, 300);
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
}
}*/; I will have a closer look today, if there aren't any objections. |
@sadikovi thanks for jumping so quickly on this. I already have a fix for the new comments and am looking into the second method issue now. |
Nice! Thanks @50Wliu! That is really good that you have a fix for it. |
I'm going to say the multiline method signature is a |
The following patch fixes member-variables:
|
@snjeza Nice fix! I confirm that it solves the comment problem, although we still need to do some work to fix the method signature highlight (tested on latest master with patch - please, correct me if I am wrong) as @50Wliu mentioned: |
Is this issue related to: catch (IOException /*| AWSNullStreamException*/ e) In VSCode, current stable, the comment is not highlighted like a comment. |
@tristan957-expero Nah, does not look like it, but I might be wrong here. Edit: Actually diff below is already enough to fix it. We don't expect comments like diff --git a/grammars/java.cson b/grammars/java.cson
index 55c3967..4297dcc 100644
--- a/grammars/java.cson
+++ b/grammars/java.cson
@@ -590,6 +590,9 @@
{
'include': '#parameters'
}
+ {
+ 'include': '#comments'
+ }
]
}
{
I think we should open a PR to fix this! |
@50Wliu should we close this issue? You fixed the main problem with highlighting and we patched separate issue raised in the comments. Or is there anything else we need to do? Thanks! |
Yeah, I'm in favor of closing this issue. For people who are still experiencing problems with comments when Atom 1.25 is released, please create new issues so that we can specifically target them :). |
VS Code 1.18
The VS Code master:
The VS Code master with microsoft/vscode#36786:
Test2.java
Copied from microsoft/vscode#36786 (comment)
See microsoft/vscode#36688, redhat-developer/vscode-java#338 and microsoft/vscode#36786
The text was updated successfully, but these errors were encountered: