Re: New gedit syntax highlighting installer script

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 29 2011 - 04:56:28 MST

Dear Chad,

I've used your files to NCL syntax highlighting in both version 2 and 3 of
gedit, but I got an error message when call gedit (version 3) from the
terminal:

(gedit:5859): GtkSourceView-WARNING **: Cannot create a regex for all the
transitions, the syntax highlighting process will be slower than usual.
The error was: *Erro ao compilar expressão
regular*((?i-x);|(?i-x)\b(False|True)\b|(?i-x)\b(byte|character|double|enumeric|file|float|graphic|int64|integer|list|logical|long|numeric|short|snumeric|string|ubyte|uint|uint64|ulong|ushort)\b|(?i-x)\.(le|lt|ge|gt|ne|eq|and|xor|or|not)\.|(?i-x)"|(?i-x)[\)\(]+|[\{\}]+|[][]+|(?i-x)\b(begin|break|continue|create|defaultapp|do|else|end|external|False|function|getvalues|group|if|load|local|new|noparent|procedure|quit|Quit|QUIT|record|return|setvalues|stop|then|True|while)\b|(?i-x)\b(abs|acos|add90LatX|add90LatY|addfile|addfiles|addfiles_GetVar|all|angmom_atm|any|area_conserve_remap|area_conserve_remap_Wrap|area_hi2lores|area_hi2lores_Wrap|array_append_record|asciiread|asciiwrite|asin|assignFillValue|atan|atan2|attsetvalues|avg|band_pass_area_time|band_pass_area_time_plot|band_pass_hovmueller|band_pass_hovmueller_plot|band_pass_latlon_time|band_pass_latlon_time_plot|betainc|bin_avg|bin_sum|boxplot|byte2flt|calcDayAnomTLL|calcMonAnomLLLT|calcMonAnomLLT|calcMonAnomTLL|calcMonAnomTLLL|calendar_decode2|cancor|cbinread|cbinwrite|cdfbin_p|cdfbin_pr|cdfbin_s|cdfbin_xn|cdfchi_p|cdfchi_x|cdfgam_p|

....
....

|xyMarkLineModes|xyMarker|xyMarkerColor|xyMarkerColors|xyMarkerSizeF|xyMarkerSizes|xyMarkerThicknessF|xyMarkerThicknesses|xyMarkers|xyMonoDashPattern|xyMonoLineColor|xyMonoLineLabelFontColor|xyMonoLineThickness|xyMonoMarkLineMode|xyMonoMarker|xyMonoMarkerColor|xyMonoMarkerSize|xyMonoMarkerThickness|xyXIrrTensionF|xyXIrregularPoints|xyXStyle|xyYIrrTensionF|xyYIrregularPoints|xyYStyle)\b)
no caractere 39529: *expressão regular grande demais*

As my system is in Portuguese, the sentences in bold are translated as:

1. Error when compiling regular expression

2. regular expression too large

This problem doesn't occur with version 2 of gedit.

Best regards,

Mateus

2011/12/27 Chad Herman <chad.scott.herman@gmail.com>

> I recently upgraded to Linux Mint 12 which uses the new Gnome 3 desktop. I
> had contributed language files and an installer script to enable NCL syntax
> highlighting in gedit. The old script will only work with gedit 2.x. Users
> of gedit 3.x (users of Gnome 3.x) will need to use the new installer
> script. This new script can be invoked with:
>
> # Install for gedit 2.x
> ./install.sh 2
>
> # Install for gedit 3.x
> ./install.sh 3
>
> Regards,
>
> Chad
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Mateus da Silva Teixeira
https://linuxcounter.net/cert/466740.png

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 29 04:56:39 2011

This archive was generated by hypermail 2.1.8 : Wed Jan 04 2012 - 10:18:09 MST