! Syntax highlighting patterns for C++ ! ! INSTALLATION ! ! Load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! These comments will not appear in your ~/.nedit ! nedit.highlightPatterns: C++:1:0{\n\ comment:"/\\*":"\\*/"::Comment::\n\ cplus comment:"//":"$"::Comment::\n\ string:"""":"""":"\\n":String::\n\ preprocessor line:"^[ \\t]*#":"$"::Preprocessor::\n\ string escape chars:"\\\\(.|\\n)":::String1:string:\n\ preprocessor esc chars:"\\\\(.|\\n)":::Preprocessor1:preprocessor line:\n\ preprocessor comment:"/\\*":"\\*/"::Comment:preprocessor line:\n\ preproc cplus comment:"//":"$"::Comment:preprocessor line:\n\ character constant:"'":"'":"[^\\\\][^']":Character Const::\n\ numeric constant:"<((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?>":::Numeric Const::D\n\ storage keyword:"<(class|typename|typeid|template|friend|virtual|inline|explicit|operator|public|private|protected|const|extern|auto|register|static|mutable|unsigned|signed|volatile|char|double|float|int|long|short|bool|wchar_t|void|typedef|struct|union|enum|asm|export)>":::Storage Type::D\n\ keyword:"<(new|delete|this|return|goto|if|else|case|default|switch|break|continue|while|do|for|try|catch|throw|sizeof|true|false|namespace|using|dynamic_cast|static_cast|reinterpret_cast|const_cast)>":::Keyword::D\n\ declaration:"<[\\l_][\\w\\.]*>((:?\\&*\\**\\s*\\[\\s*\\]\\s*)*)(?=\\s*\\n?\\s*[\\l\\*\\&_]\\w*)":::Storage Type::\n\ casting:"(?!\\<)(<[\\l_][\\w\\.]*>)(?=\\>)":::Storage Type::\n\ braces and parens:"[(){}[\\]]":::Keyword::D\n\ function call:"<[\\l_]\\w*>\\s*\\n?\\s*(?=\\()":::Subroutine::\n\ variable:"<[\\l_]\\w*>":::Identifier1::D\n\ signs:"[-+*/%=,.;:<>!|&^?]":::Keyword::D\n\ } nedit.languageModes: C++:.cc .h .hh .C .H .i .cxx .hxx::::::".,/\\`'!|@#%^&*()-=+{}[]"":;<>?~" ! generated with ./extract_lang.pl version 0.1