! Syntax Highlighting Patterns for Mentor Graphics Corporation AMPLE ! Contributed by David La Rosa (c22dal@ic.delcoelect.com) ! ! This pattern set is for NEdit 5.1 and beyond. Older versions may ! still be available in: ! ! ftp://ftp.nedit.org/pub/v5_0_2/contrib/highlight_pats/ ! ! Load this file 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. ! ! Changes: ! ! March 10, 2000, Updated for NEdit 5.1 (MWE) ! nedit.highlightPatterns: \ AMPLE:1:0 {\n\ comment:\"/\\*\":\"\\*/\"::AMPLE Comment::\n\ ample comment:\"//\":\"$\"::AMPLE Comment::\n\ function header:\"function[\\t ]+([a-zA-Z0-9_]+)[\\t ]?\":::Flag::\n\ double quote strings:\"\"\"\":\"\"\"\"::String::\n\ dq string esc chars:\"\\\\(.|\\n)\":::String2:double quote strings:\n\ single quote strings:\"'\":\"'\"::AMPLE String::\n\ sq string esc chars:\"\\\\(.|\\n)\":::AMPLE String1:single quote strings:\n\ re matching:\"<((m|q|qq)?/)(\\\\/|[^/])*(/[gimsox]?)>\":::String::\n\ re match coloring:\"\\1\\4\":::String2:re matching:C\n\ re substitution:\"<((s|y|tr)/)(\\\\/|[^/])*(/)[^/]*(/[gimsox]?)\":::String::\n\ re subs coloring:\"\\1\\4\\5\":::String2:re substitution:C\n\ storage keywords:\"<(extern|local|declaration|literal|static|builtin|command usage|quick_help|ref_help|string|optional|name|default|check|label|rest)>\":::Storage Type::D\n\ keyword:\"<(function|return|if|else|assignment|switch|break|continue|while|do|for|indirect|invisible|sealed|undefined|asm|auto|char|class|const|delete|double|enum|float|friend|goto|inline|int|long|new|operator|overload|public|register|short|signed|sizeof|struct|this|typedef|union|unsigned|virtual|volatile)>\":::Keyword::D\n\ AMPLE constants:\"<(YES|NO|NULL|FALSE|TRUE|UNDEFINED|[V,v][O,o][I,i][D,d])>\":::Numeric Const::D\n\ AMPLE conditions:\"([ ]+([=][=]|[|][|]|[&][&]|[>]|[<]|[>][=]|[<][=]|[!][=]|[!][>]|[!][<])+[ ]+)\":::AMPLE Conds::D\n\ mentor commands:\"[$](\\{[^}]*}|[^a-zA-Z0-9_ /\\t\\n\\.,\\\\[\\\\{\\\\(]|[0-9]+|[a-zA-Z_][a-zA-Z0-9_]*)?\":::Identifier1::\n\ literal names:\"[@](\\{[^}]*}|[^a-zA-Z0-9_ /\\t\\n\\.,\\\\[\\\\{\\\\(]|[0-9]+|[a-zA-Z_][a-zA-Z0-9_]*)?\":::String::\n\ braces and parens:\"[\\[\\]\\{}\\(\\)]\":::Keyword::} nedit.languageModes:\ AMPLE:.ample .ample_ins:::::: ! above blank line is critical !nedit.styles:\ ! AMPLE keyword:blue:Bold nedit.styles:\ AMPLE Comment:darkgreen:Italic\n\ AMPLE Conds:blue:Bold\n\ AMPLE String:green:Plain\n\ AMPLE String1:green:Bold\n