RE: problem in java highlighting
Michael Staszewski <[email protected]>
| Newsgroups | gmane.comp.db.oracle.toad.free |
|---|---|
| Message-ID | <6548C9485A5E9C41AE3BB626E669B547100D3C99@ALVMBXW01.prod.quest.corp> |
Go to View|Options|Editor|Behavior and Edit the PL/SQL language parser. Check out the "Sub Languages" tab and notice the "End Condition" for the Java highlighter. Replace that text with the following. (?-m)(\})(\s*?)((\/\s*?(\r|\n|$))|(\s*?$)) Michael From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Friday, December 02, 2011 11:41 AM To: [email protected] Subject: [toad] problem in java highlighting Is this a bug in code, or do I need to adjust something in my highlighting rules? I've never configured them for java (that I recall) so this is out-of-the-box. look at the end of the file in one of the editor windows and the end of it will be highlighted as if it were commented, but it isn't. I'm using 11.0.0.116 CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED testcomments AS import java.sql.*; import java.util.*; import oracle.sql.*; import java.lang.*; import java.io.*; public class testcomments { //here's a comment, it's ok //********* here's another one, it's ok //and yet another good one public static void getbanner() { try { //********* Use our current session, still good Connection conn = DriverManager.getConnection("jdbc:default:connection:"); //*********** Grab the banner text, still good Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select * from v$version"); //****** Print the results, yep, going strong String banner; while (rs.next()) { banner = rs.getString("BANNER"); System.out.println(banner); } }catch (Exception e) { //******** What could possibly go wrong? String message = e.getMessage(); System.out.println(message); } } //****** this comment is messed up, the /* is parsed wrong public static void some_other_code() { } // the first bad comment is looking for the */ closing tag }