SF.net SVN: geany:[3620] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Mar 5 13:03:25 UTC 2009


Revision: 3620
          http://geany.svn.sourceforge.net/geany/?rev=3620&view=rev
Author:   eht16
Date:     2009-03-05 13:03:25 +0000 (Thu, 05 Mar 2009)

Log Message:
-----------
Add keyword 'extends' and fix Fortran parser to support the 'extends' keyword (closes #2654492).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/data/filetypes.fortran
    trunk/tagmanager/fortran.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-03-05 13:03:06 UTC (rev 3619)
+++ trunk/ChangeLog	2009-03-05 13:03:25 UTC (rev 3620)
@@ -3,6 +3,9 @@
  * src/notebook.c:
    Don't use menu item images for the tab bar menu to save some
    vertical space.
+ * data/filetypes.fortran, tagmanager/fortran.c:
+   Add keyword 'extends' and fix Fortran parser to support the
+   'extends' keyword (closes #2654492).
 
 
 2009-03-03  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>

Modified: trunk/data/filetypes.fortran
===================================================================
--- trunk/data/filetypes.fortran	2009-03-05 13:03:06 UTC (rev 3619)
+++ trunk/data/filetypes.fortran	2009-03-05 13:03:25 UTC (rev 3620)
@@ -21,7 +21,7 @@
 
 [keywords]
 # all items must be in one line
-primary=access action advance allocatable allocate apostrophe assign assignment associate asynchronous backspace bind blank blockdata call case character class close common complex contains continue cycle data deallocate decimal delim default dimension direct do dowhile double doubleprecision elemental else elseif elsewhere encoding end endassociate endblockdata enddo endfile endforall endfunction endif endinterface endmodule endprogram endselect endsubroutine endtype endwhere entry eor equivalence err errmsg exist exit external file flush fmt forall form format formatted function go goto id if implicit in include inout integer inquire intent interface intrinsic iomsg iolength iostat kind len logical module name named namelist nextrec nml none nullify number only open opened operator optional out pad parameter pass pause pending pointer pos position precision print private procedure program protected public quote pure read readwrite real rec recl recursive result return rewind save select selectcase selecttype sequential sign size stat status stop stream subroutine target then to type unformatted unit use value volatile wait where while write
+primary=access action advance allocatable allocate apostrophe assign assignment associate asynchronous backspace bind blank blockdata call case character class close common complex contains continue cycle data deallocate decimal delim default dimension direct do dowhile double doubleprecision elemental else elseif elsewhere encoding end endassociate endblockdata enddo endfile endforall endfunction endif endinterface endmodule endprogram endselect endsubroutine endtype endwhere entry eor equivalence err errmsg exist exit extends external file flush fmt forall form format formatted function go goto id if implicit in include inout integer inquire intent interface intrinsic iomsg iolength iostat kind len logical module name named namelist nextrec nml none nullify number only open opened operator optional out pad parameter pass pause pending pointer pos position precision print private procedure program protected public quote pure read readwrite real rec recl recursive result return rewind save select selectcase selecttype sequential sign size stat status stop stream subroutine target then to type unformatted unit use value volatile wait where while write
 intrinsic_functions=abs achar acos acosd adjustl adjustr aimag aimax0 aimin0 aint ajmax0 ajmin0 akmax0 akmin0 all allocated alog alog10 amax0 amax1 amin0 amin1 amod anint any asin asind associated atan atan2 atan2d atand bitest bitl bitlr bitrl bjtest bit_size bktest break btest cabs ccos cdabs cdcos cdexp cdlog cdsin cdsqrt ceiling cexp char clog cmplx conjg cos cosd cosh count cpu_time cshift csin csqrt dabs dacos dacosd dasin dasind datan datan2 datan2d datand date date_and_time dble dcmplx dconjg dcos dcosd dcosh dcotan ddim dexp dfloat dflotk dfloti dflotj digits dim dimag dint dlog dlog10 dmax1 dmin1 dmod dnint dot_product dprod dreal dsign dsin dsind dsinh dsqrt dtan dtand dtanh eoshift epsilon errsns exp exponent float floati floatj floatk floor fraction free huge iabs iachar iand ibclr ibits ibset ichar idate idim idint idnint ieor ifix iiabs iiand iibclr iibits iibset iidim iidint iidnnt iieor iifix iint iior iiqint iiqnnt iishft iishftc iisign ilen imax0 imax1 imin0 imin1 imod index inint inot int int1 int2 int4 int8 iqint iqnint ior ishft ishftc isign isnan izext jiand jibclr jibits jibset jidim jidint jidnnt jieor jifix jint jior jiqint jiqnnt jishft jishftc jisign jmax0 jmax1 jmin0 jmin1 jmod jnint jnot jzext kiabs kiand kibclr kibits kibset kidim kidint kidnnt kieor kifix kind kint kior kishft kishftc kisign kmax0 kmax1 kmin0 kmin1 kmod knint knot kzext lbound leadz len len_trim lenlge lge lgt lle llt log log10 logical lshift malloc matmul max max0 max1 maxexponent maxloc maxval merge min min0 min1 minexponent minloc minval mod modulo mvbits nearest nint not nworkers number_of_processors pack popcnt poppar precision present product radix random random_number random_seed range real repeat reshape rrspacing rshift scale scan secnds selected_int_kind selected_real_kind set_exponent shape sign sin sind sinh size sizeof sngl snglq spacing spread sqrt sum system_clock tan tand tanh tiny transfer transpose trim ubound unpack verify
 user_functions=cdabs cdcos cdexp cdlog cdsin cdsqrt cotan cotand dcmplx dconjg dcotan dcotand decode dimag dll_export dll_import doublecomplex dreal dvchk encode find flen flush getarg getcharqq getcl getdat getenv gettim hfix ibchng identifier imag int1 int2 int4 intc intrup invalop iostat_msg isha ishc ishl jfix lacfar locking locnear map nargs nbreak ndperr ndpexc offset ovefl peekcharqq precfill prompt qabs qacos qacosd qasin qasind qatan qatand qatan2 qcmplx qconjg qcos qcosd qcosh qdim qexp qext qextd qfloat qimag qlog qlog10 qmax1 qmin1 qmod qreal qsign qsin qsind qsinh qsqrt qtan qtand qtanh ran rand randu rewrite segment setdat settim system timer undfl unlock union val virtual volatile zabs zcos zexp zlog zsin zsqrt
 

Modified: trunk/tagmanager/fortran.c
===================================================================
--- trunk/tagmanager/fortran.c	2009-03-05 13:03:06 UTC (rev 3619)
+++ trunk/tagmanager/fortran.c	2009-03-05 13:03:25 UTC (rev 3620)
@@ -83,6 +83,7 @@
 	KEYWORD_end,
 	KEYWORD_entry,
 	KEYWORD_equivalence,
+	KEYWORD_extends,
 	KEYWORD_external,
 	KEYWORD_format,
 	KEYWORD_function,
@@ -248,6 +249,7 @@
 	{ "end",            KEYWORD_end          },
 	{ "entry",          KEYWORD_entry        },
 	{ "equivalence",    KEYWORD_equivalence  },
+	{ "extends",        KEYWORD_extends      },
 	{ "external",       KEYWORD_external     },
 	{ "format",         KEYWORD_format       },
 	{ "function",       KEYWORD_function     },
@@ -1271,6 +1273,7 @@
  *  component-attr-spec
  *      is POINTER
  *      or DIMENSION ( component-array-spec )
+ *      or EXTENDS ( type name )
  */
 static void parseQualifierSpecList (tokenInfo *const token)
 {
@@ -1293,6 +1296,7 @@
 				break;
 
 			case KEYWORD_dimension:
+			case KEYWORD_extends:
 			case KEYWORD_intent:
 				readToken (token);
 				skipOverParens (token);
@@ -1615,6 +1619,7 @@
 		case KEYWORD_data:
 		case KEYWORD_dimension:
 		case KEYWORD_equivalence:
+		case KEYWORD_extends:
 		case KEYWORD_external:
 		case KEYWORD_intent:
 		case KEYWORD_intrinsic:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list