! Syntax Highlighting Patterns for the D Programming Language ! ! Use this pattern by starting NEdit with: ! ! nedit -import D.1.0.1.pats ! ! If you want to keep the patterns permanently, you have to save your ! preferences by choosing 'Save Defaults' from the Preferences menu. ! ! Copyright 2007 Chad Joan ! This file can be copied and distributed under the same licence as NEdit ! or, at your option, under the GNU General Public Licence, Version 2 or ! any higher version. ! ! Author/Maintainer's email address: gamerchad at gmail.com nedit.highlightPatterns: D:1:0{\n\ README:"D programming language highlighting patterns, version 1.0.1. Author/Maintainer: Chad Joan. Email: gamerchad at gmail.com":::Flag::D\n\ comment multiline:"/\\*":"\\*/"::Comment::\n\ comment nested 1:"/\\+":"\\+/"::Comment::\n\ comment nested 2:"/\\+":"\\+/"::Comment:comment nested 1:\n\ comment nested 3:"/\\+":"\\+/"::Comment:comment nested 2:\n\ comment nested 4:"/\\+":"\\+/"::Comment:comment nested 3:\n\ comment nested 5:"/\\+":"\\+/"::Comment:comment nested 4:\n\ comment nested 6:"/\\+":"\\+/"::Comment:comment nested 5:\n\ comment nested 7:"/\\+":"\\+/"::Comment:comment nested 6:\n\ comment nested 8:"/\\+":"\\+/"::Comment:comment nested 7:\n\ comment nested 9:"/\\+":"\\+/"::Comment:comment nested 8:\n\ comment nested 10:"/\\+":"\\+/"::Comment:comment nested 9:\n\ string:"x?""((\\\\"")|[^""]|(\\n))*""[cdw]?":::String::\n\ wysiwyg string:"((`(.|[\\n])*?`)|(r""(.|[\\n])*?""))[cdw]?":::String::\n\ comment single line:"//":"$"::Comment::\n\ character:"'((\\\\['""?\\abfnrtv])|[^']){0,1}'":::String::D\n\ keywords - special values:"<(?:true|false|null|this|super)>":::Numeric Const::D\n\ keywords - basic types:"<(?:delegate|function|bit|bool|byte|ubyte|short|ushort|int|uint|long|ulong|cent|char|wchar|dchar|float|double|real|ifloat|idouble|ireal|cfloat|cdouble|creal|void)>":::Storage Type::D\n\ keywords - everything else:"<(?:abstract|alias|align|asm|assert|auto|body|break|case|cast|catch|class|const|continue|debug|default|delete|deprecated|do|else|enum|export|extern|final|finally|for|foreach|foreach_reverse|goto|if|import|in|inout|interface|invariant|is|lazy|mixin|module|new|out|override|package|pragma|private|protected|public|return|scope|static|struct|switch|synchronized|template|throw|try|typedef|typeid|typeof|union|unittest|ushort|version|volatile|while|withdelegate|function|bit|bool|byte|ubyte|short|ushort|int|uint|long|ulong|cent|char|wchar|dchar|float|double|real|ifloat|idouble|ireal|cfloat|cdouble|creal|void)>":::Keyword::D\n\ hex float:"<(0[xX][A-Fa-f0-9_]+(\\.[A-Fa-f0-9_]+)?([pP][-+]?[0-9_]+)?[fFL]?i?)>":::Numeric Const::D\n\ dec float:"<([0-9_]+(\\.[0-9_]+)?([eE][-+]?[0-9_]+)?[fFL]?i?)>":::Numeric Const::D\n\ binary:"<(0[bB][01_]+(L[uU]?|[uU]L?)?)>":::Numeric Const::D\n\ hex:"<(0[xX][A-Fa-f0-9_]+(L[uU]?|[uU]L?)?)>":::Numeric Const::D\n\ decimal:"<([0-9_]+(L[uU]?|[uU]L?)?)>":::Numeric Const::D\n\ braces:"[{}]":::Brace::\n\ } nedit.languageModes: D:.d .di::::::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~":\n\ ! Change Log: ! ! 2007-03-18 ! - Created from mailing list post a04529f90703112348i3a7e4a0dube3276e32fad415c@mail.gmail.com ! - Some small changes to wysiwyg string, removed string qoute escape ! - Added README pattern !