! Symbol Highlighting Patterns for NCL [NCAR COmmand Language]
!
! Prototype
!
! ------------------------------------------------------------------------------
!
! Highlighting Patterns for NCL
!
! In NEdit Version 5.1.0 and beyond, load this pattern by starting nedit with:
!
!     nedit -import <name of this file>
!
! 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.
!
! In version 5.0, without -import, you must edit your .nedit file by hand and
! add the contents of each resource below to the corresponding list in your
! .nedit file.  Be sure to separate new entries with \n, and continue resource
! strings by escaping all newlines within a resource value with \ (backslash),
! leaving only the last line of the resource value not ending in \.
!
! ------------------------------------------------------------------------------

! This is the original stuff Dennis had for strings, but it does not seem to
! work.

!    String:\"\"\"\":\"\"\"\"::String::\n\
!    StringSyntax:"[$]":::StringSyntax::\n\

!              String:Black:Plain\n\
!              StringSyntax:Blue:Bold\n\

! NCL gsn csm plot templates and special gsn functions (1st set)

! NCL contributed functions (2nd set)

! NCL shea_util functions (3rd set)


nedit.highlightPatterns: \
 NCL:1:0{\n\
    Keyword:"<(begin|end|exit|do|end do|do while)>":::Keyword::\n\
    Keyword:"<(if|else|end if|return|break|continue)>":::Keyword::\n\
    Keyword:"<(function|procedure|local|external|load|record|stop record)>":::Keyword2::\n\
    Keyword:"<(gsn_polyline|gsn_csm_xy|gsn_csm_map|gsn_csm_map_ce|gsn_csm_map_polar|gsn_csm_contour_map_ce|gsn_csm_contour_map_polar|gsn_csm_contour_map_overlay|gsn_add_polygon|gsn_add_polyline|gsn_add_polymarker|gsn_add_text|gsn_add_text_ndc)>":::Keyword3::\n\
	 Keyword:"<(gsn_legend_ndc|gsn_polygon|gsn_polygon_ndc|gsn_polyline|gsn_polyline_ndc|gsn_polymarker|gsn_polymarker_ndc|gsn_text_ndc|gsn_text|gsn_csm_xy|gsn_csm_hov|gsn_csm_lat_time|gsn_csm_time_lat|gsn_csm_pres_hgt|gsn_histogram|gsn_csm_streamline|gsn_csm_streamline_map_ce|gsn_csm_streamline_map_polar|gsn_csm_streamline_map|gsn_csm_streamline_contour_map_ce|gsn_csm_streameline_contour_map_polar|gsn_csm_streamline_contour_map|gsn_csm_pres_hgt_streamline)>":::Keyword3::\n\
	 Keyword:"<(gsn_csm_vector|gsn_csm_vector_map_ce|gsn_csm_vector_map_polar|gsn_csm_vector_map|gsn_csm_pres_hgt_vector|gsn_csm_vector_scalar_map_ce|gsn_csm_vector_scalar_map_polar|gsn_csm_vector_scalar_map|gsn_open_wks|gsn_panel|gsn_define_colormap|ngezlogo|nglogo|NhlNewColor|gsn_reverse_colormap|gsn_csm_y|gsn_csm_contour_map|gsn_csm_contour)>":::Keyword3::\n\
	 Keyword:"<(addfiles_GetVar|assignFillValue|calcMonAnom|changeCase|changeCaseChar|climMonLLT|climMonLLLT|clmMonTLL|clmMonTLLL|closest_val|copy_VarAtts|copy_VarCoords|copy_VarCoords_1|copy_VarCoords_2|copy_VarMeta|copyatt|cshstringtolist|decimalPlaces|epsZero|fbinseqSwap1|fbinseqSwap2|ftl2dble|get1Dindex|get1Dindex_Collapse|GetFillColor|getFillValue)>":::Keyword3::\n\
	 Keyword:"<(lonFlip|lonPivot|month_to_season|month_to_seaonN|month_to_season12|RGBtoCmap|rmInsufData|rmAnnCycle1D|rmMonAnncyc|short2flt|stdMon|SqrtCosWeight|transpose|uv2vrG_Wrap|zonalAve)>":::Keyword3::\n\
	 Keyword:"<(ZeroLineContour|ZeroNegDashLineContour|ZeroNegDAShLineContourOverlay|ZeroGoneNegDashLineContour|NegDashLineContour|SetZeroLineThickness|ColorNegDashZeroPosContour|ColorShadeLeGeContour|ShadeLtContour|ShadeGtContour|ShadeLtGtContour|ShadeGeLeContour|genCmapManualRes|genCmapMnMxCnInt|genCmapMnMxSpan|genCmapCnLvl|infoTimeStamp|msgValOutline|printVarInfo|specx_ci|specsy_ci|add90LatX|add90LatY|plot_xy2|drawNDCGrid)>":::Keyword3::\n\
	 Keyword:"<(addfile|addfiles|all|any|asciiread|asciiwrite|avg|cbinread|cbinwrite|chartofloat|chartointeger|chartostring|conform|craybinnumrec|craybinrecread|cz2ccsm|delete|dim_avg|dim_max|dim_min|dim_product|dim_sum|dim_variance|dimsizes|doubletofloat|dpres_hybrid_ccm|eof_varimax|eofcor|eofcor_pcmsg|eofcor_pcmsg_Wrap|eofcor_ts|eofcov|eofcov_pcmsg|eofcov_ts|esacr|esacv|esccr|esccv|escorc|exp|f2fosh|f2foshv|f2fsh|f2fshv|f2gsh|f2gshv|fbindirread|finbindirwrite|fbinnumred|fbinread|fbinrecread|fbinrecwrite|fbinwrite|fileattdef|filedimdef|flevarattdef|filevardef|filevardimsizes|fo2fsh|fo2fshv|fspan|ftest|g2gsh|g2gshv|gc_latlon|getenv|getfilevaratts|getfilevardims|getfilevarnames|getvaratts)>":::Keyword3::\n\
	 Keyword:"<(ind|int2p|isatt|ismissing|ispan|linint1|linint2|linint2_points|local_min|mask|max|min|natgrid|ndtooned|onedtond|overlay|paleo_outline|pop_remap|pres_hybrid_ccm|pres_sigma|print|printVarSummary|qsort|rand|rcm2points|rcm2grid|relhum|rtest|runave)>":::Keyword3::\n\
	 Keyword:"<(sigma2hybrid|sizeof|smth9|specx_anal|specxy_anal|sprintf|sprinti|sqrt|sqsort|stddev|stringtochar|stringtointeger|sum|svdcov|svdcov_sv|svdstd|svdstd_sv|system|systemfunc|ttest|typeof|undef|uv2dvF|uv2dvG|uv2sfvpf|uv2sfvpg|uv2vr_cfd|uv2vrdvf|uv2vrdvg|uv2vrF|uv2vrf|uv2vrG|uv2vrg|variance|vinth2p|vinth2p_ecmwf|vr2uvf|vr2uvF|vr2uvg|vr2uvG|wavelet|wgt_areaave|wgt_arearmse|wgt_runave|wgt_volave|wgt_volave_ccm|wgt_volrmse|wgt_volrmse_ccm|zonal_mpsi)>":::Keyword3::\n\
!
! functions added: Version 4.2.0.a033 - 23 January 2006
!
	 Keyword:"<(calcDayAnomTLL|cancor|clmDayTLL|generate_2d_array|gsn_csm_xy3|hyi2hyo|hyi2hyo_Wrap|local_min_1d|local_max_1d|omega_ccm|omega_ccm_driver|pack_values|setfileoption|shsgc_R42|shsgc_R42_Wrap|smthClmDayTLL|yyyymm_time|yyyymm_to_yyyyfrac|z2geouv)>":::Keyword3::\n\
!
! functions added: Version 4.2.0.a034 - 26 September 2006
!
	 Keyword:"<(array_append_record|cdft_p|cdft_t|clmMon2clmDay|delete_VarAtts|dim_avg_wgt|and|dim_avg_wgt_Wrap|dim_sum_wgt|and|dim_sum_wgt_Wrap|erf/erfc|get_file_suffix|gsn_add_annotation|gsn_create_labelbar|gsn_create_legend|isbigendian|isMonotonic|loadscript|lspoly|niceLatLon2D|pres2hybrid|and|pres2hybrid_Wrap|rip_cape_2d|rip_cape_3d|stdatmus_p2tdz|stdatmus_z2tdp|strlen|table_attach_rows|wgt_vert_avg_beta|wrf_rh,|wrf_tk|yyyymmdd_to_yyyyfrac|yyyymmddhh_to_yyyyfrac)>":::Keyword3::\n\
!
! functions added: Version 4.3.0 -    April 2007
!
	 Keyword:"<(cumsum|dim_cumsum|dim_cumsum_Wrap|dpres_plevel|ft2db|fft2df|fft2db|gsn_contour_shade|gsn_table|ind_nearest_coord|indStrSubset|isStrSubset|mod|printMinMax|student_t|where)>":::Keyword3::\n\
!
! functions added: Version 4.3.1 -     
!
	 Keyword:"<(abs|cos|asin|atan|atan2|cos|cosh|floor|gammainc|inverse_matrix|linrood_latwgt|log|log10|product|reg_multlin|regCoef|regline|round|runave_Wrap|simpne|sinh|smth9_Wrap|solve_linsys|tanh|taper|gaus)>":::Keyword3::\n\
!
!
! functions added: miscellaneous
!
	 Keyword:"<(skewT_BackGround|skewT_PlotData)>":::Keyword3::\n\
!
	 Comment:";":"$"::Comment::\n\
    IO_Syntax:"[-\\>]":::IO_Syntax::\n\
    MetaSyntax:"@|&|!":::MetaSyntax::\n\
    ArraySyntax:"\\|":::ArraySyntax::\n\
    ArraySyntax:":":::ArraySyntax::\n\
    ArraySyntax:"[\\(//\\)]":::ArraySyntax::\n\
    Continuation:"\\\\":::Continuation::\n\
	 String single:"'":"'":"\\n":String::\n\
	 String double:"""":"""":"\\n":String::\n\
    Brackets:"[{}]":::SymbolSyntax::\n\
    Numeric Const:"<[0-9]+(\\.[0-9]*)?([de][-+]?[0-9]*)?|\\.[0-9]+([de][-+]?[0-9]*)?>":::Numeric Const::D\n\
 }
nedit.languageModes: NCL:.ncl::::::
nedit.styles: 	Keyword:Black:Bold\n\
					Keyword2:Purple:Bold\n\
					Keyword3:Blue:Bold\n\
               MetaSyntax:Orange:Bold\n\
               SymbolSyntax:Black:Bold\n\
               IO_Syntax:Brown:Bold\n\
               Continuation:Blue:Bold\n\
               Numeric Const:Black:Plain\n\
               ArraySyntax:Black:Bold\n\
	        		Comment:grey50:Italic
