Patch #3246 2012-01-03 01:46

alpha0010

Java lexer
Download
3246-Java_lexer.patch (6.0 KB)
Category
Lexer
Status
Accepted
Close date
2012-06-28 05:27
Assigned to
mortenmacfly
Index: src/sdk/resources/lexers/lexer_java.sample
===================================================================
--- src/sdk/resources/lexers/lexer_java.sample    (revision 0)
+++ src/sdk/resources/lexers/lexer_java.sample    (working copy)
@@ -0,0 +1,26 @@
+/**
+ * @author      The Coder
+ * @version     1.0
+ * @since       2012-01-14
+ */
+
+import javax.swing.JFrame;
+import javax.swing.JLabel; //Single line comment.
+
+public class HelloWorldBox extends JFrame
+{
+    public static void main(String args[])
+    {
+        new HelloWorldBox();
+    }
+
+    HelloWorldBox()
+    {
+        JLabel helloLabel = new JLabel("Hello World");
+        add(helloLabel);
+        this.setSize(200, 100);
+        setVisible(true);
+        /* Multi-line
+           comment. */
+    }
+}
Index: src/sdk/resources/lexers/lexer_java.xml
===================================================================
--- src/sdk/resources/lexers/lexer_java.xml    (revision 0)
+++ src/sdk/resources/lexers/lexer_java.xml    (working copy)
@@ -0,0 +1,114 @@
+<?xml version="1.0"?>
+<!DOCTYPE CodeBlocks_lexer_properties>
+<CodeBlocks_lexer_properties>
+        <Lexer name="Java"
+                index="3"
+                filemasks="*.java">
+                <Style name="Default"
+                        index="0"
+                        fg="0,0,0"
+                        bg="255,255,255"
+                        bold="0"
+                        italics="0"
+                        underlined="0"/>
+                <Style name="Comment (normal)"
+                        index="1"
+                        fg="160,160,160"/>
+                <Style name="Comment line (normal)"
+                        index="2"
+                        fg="190,190,230"/>
+                <Style name="Comment (documentation)"
+                        index="3"
+                        fg="128,128,255"
+                        bold="1"/>
+                <Style name="Comment line (documentation)"
+                        index="15"
+                        fg="128,128,255"
+                        bold="1"/>
+                <Style name="Comment keyword (documentation)"
+                        index="17"
+                        fg="0,128,128"/>
+                <Style name="Comment keyword error (documentation)"
+                        index="18"
+                        fg="128,0,0"/>
+                <Style name="Number"
+                        index="4"
+                        fg="240,0,240"/>
+                <Style name="Keyword"
+                        index="5"
+                        fg="0,0,160"
+                        bold="1"/>
+                <Style name="User keyword"
+                        index="16"
+                        fg="0,160,0"
+                        bold="1"/>
+                <Style name="String"
+                        index="6,12"
+                        fg="0,0,255"/>
+                <Style name="Character"
+                        index="7"
+                        fg="224,160,0"/>
+                <Style name="UUID"
+                        index="8"
+                        fg="0,0,0"/>
+                <Style name="Operator"
+                        index="10"
+                        fg="255,0,0"/>
+                <Style name="Selection"
+                        index="-99"
+                        bg="192,192,192"/>
+                <Style name="Active line"
+                        index="-98"
+                        bg="255,255,160"/>
+                <Style name="Breakpoint line"
+                        index="-2"
+                        bg="255,160,160"/>
+                <Style name="Debugger active line"
+                        index="-3"
+                        bg="160,160,255"/>
+                <Style name="Compiler error line"
+                        index="-4"
+                        bg="255,128,0"/>
+                <Style name="Matching brace highlight"
+                        index="34"
+                        bg="128,255,255"
+                        bold="1"/>
+                <Style name="No matching brace highlight"
+                        index="35"
+                        fg="255,255,255"
+                        bg="255,0,0"
+                        bold="1"/>
+                <Keywords>
+                        <!-- Primary keywords and identifiers -->
+                        <Set index="0"
+                            value="boolean byte char double float short void int long
+                                   while for do switch break continue case default
+                                   if else try catch finally class abstract extends
+                                   final implements import instanceof interface native
+                                   new package private protected public return static
+                                   super synchronized this throw throws transient
+                                   volatile strictfp assert enum true f
download for full patch...
mortenmacfly 2012-06-28 05:27

Thank you!