Patch #2981 2010-04-12 12:33

nocide

D Programming Language support
Download
2981-D_Programming.patch (28.8 KB)
Category
Application::Refinement
Status
Open
Close date
 
Assigned to
afb
Index: debian/changelog
===================================================================
--- debian/changelog    (Revision 6203)
+++ debian/changelog    (Arbeitskopie)
@@ -1,4 +1,4 @@
-codeblocks (8.02svn5933) unstable; urgency=low
+codeblocks (8.02svn6198) unstable; urgency=low
 
   * more fixes to debian build system, sources and packages are now
     lintian-clean, except for some words guessed as spelling-errors.
Index: src/sdk/resources/lexers/lexer_d.xml
===================================================================
--- src/sdk/resources/lexers/lexer_d.xml    (Revision 6203)
+++ src/sdk/resources/lexers/lexer_d.xml    (Arbeitskopie)
@@ -3,53 +3,81 @@
 <CodeBlocks_lexer_properties>
         <Lexer name="D"
                 index="79"
-                filemasks="*.d,*.dmd,*.di">
+                filemasks="*.d,*.dd,*.di">
                 <Style name="Default"
                         index="0"
                         fg="0,0,0"
-                        bg="255,255,255"
+                        bg="249,249,249"
                         bold="0"
                         italics="0"
                         underlined="0"/>
-                <Style name="Comment (normal)"
-                        index="1,2"
-                        fg="160,160,160"/>
+                <Style name="Comment"
+                        index="1"
+                        fg="0,128,0"/>
+                <Style name="Commentline"
+                        index="2"
+                        fg="0,128,0"/>
+                <Style name="Comment (doc)"
+                        index="3"
+                        fg="107,107,107"
+                        italics="1"/>
                 <Style name="Comment (nested)"
                         index="4"
-                        fg="160,160,160"/>
-                <Style name="Comment (documentation)"
-                        index="3,15"
-                        fg="128,128,255"
-                        bold="1"/>
-                <Style name="Comment keyword (documentation)"
-                        index="16"
-                        fg="0,128,128"/>
-                <Style name="Comment keyword error (documentation)"
-                        index="17"
-                        fg="128,0,0"/>
+                        fg="107,107,107"
+                        italics="1"/>
                 <Style name="Number"
                         index="5"
-                        fg="240,0,240"/>
-                <Style name="Keyword"
-                        index="6,7"
-                        fg="0,0,160"
+                        fg="0,100,100"/>
+                <Style name="Keyword 1"
+                        index="6"
+                        fg="0,0,255"/>
+                <Style name="Keyword 2"
+                        index="7"
+                        fg="42,130,210"
                         bold="1"/>
-                <Style name="User keyword"
+                <Style name="Keyword 3"
                         index="8"
-                        fg="0,160,0"
-                        bold="1"/>
-                <Style name="Typedef"
+                        fg="0,0,255"/>
+                <Style name="Keyword 4"
                         index="9"
-                        fg="0,160,0"/>
+                        fg="0,0,255"/>
                 <Style name="String"
-                        index="10,11"
-                        fg="0,0,255"/>
+                        index="10,11,18"
+                        fg="231,34,34"/>
+                <Style name="Rawstring"
+                        index="19"
+                        fg="219,0,14"/>
                 <Style name="Character"
                         index="12"
-                        fg="224,160,0"/>
+                        fg="193,135,0"/>
                 <Style name="Operator"
                         index="13"
-                        fg="255,0,0"/>
+                        fg="83,40,40"/>
+                <Style name="Identifier"
+                        index="14"
+                        fg="0,0,0"/>
+                <Style name="Commentline (doc)"
+                        index="15"
+                        fg="107,107,107"
+                        italics="1"/>
+                <Style name="Comment keyword (doc)"
+                        index="16"
+                        fg="0,128,128"
+                        italics="1"/>
+                <Style name="Comment keyword error (doc)"
+                        index="17"
+                        fg="128,0,0"
+                        italics="1"
+                        bold="1"/>
+                <Style name="Keyword 5"
+                        index="20"
+                        fg="0,113,240"/>
+                <Style name="Keyword 6"
+                        index="21"
+                        fg="0,0,102"/>
+                <Style name="Keyword 7"
+                        index="22"
+                        fg="153,0,112"/>
                 <Style name="Selection"
download for full patch...
nocide 2010-04-12 12:36

Imporved support for the D programming language.

Also fixes following bugs:

015959 Doesn't recognize /+ D comments +/ (Application::Editor)

014301 -g Flag not being passed to DMD, GDC (Application::WrongBehaviour)

014031 Syntaxhighlighting: D multiline strings (Application::Editor)

afb 2010-08-28 21:44

Partially applied, needs further work/fixes.