Bug 322570 - Update fortran syntax to 2008 standard
Summary: Update fortran syntax to 2008 standard
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: Git
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-07-19 13:13 UTC by zmi
Modified: 2018-10-27 02:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Fortran syntax schema (39.95 KB, application/xml)
2016-02-01 17:46 UTC, zmi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmi 2013-07-19 13:13:08 UTC
There are many new keywords in fortran 2003-2008 standards and syntax highlighting schema fortran.xml in kate part is outdated.

Reproducible: Always

Steps to Reproduce:
1. open file with modern fortran 2008 code
2. no highlighting for many keywords.
Actual Results:  
no highlighting for new fortran 2003-2008 keywords

Expected Results:  
pretty fortran code

* keywords:
abstract bind classis codimension class concurrent contiguous enumerator is import impure selecttype typeis wait class submodule procedure

* in io instruction: read, write, open inquire:
 nml  asynchronous  decimal   id iomsg  pos rec round sign  action encoding iomsg  newunit apostrophe append asis comma compatible default direct down endfile formatted nearest new no none null old plus point processor_defined quote print read readwrite replace rewind scratch sequential stream suppress unformatted unknown up utf-8 write zero


* types:
asynchronous codimension contiguous deferred generic non_overridable nopass pass protected
value volatile

* iso c binding types:     
c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t c_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_char c_alert c_backspace c_form_feed c_new_line c_carriage_return c_horizontal_tab c_vertical_tab c_null_ptr c_null_funptr c_ptr c_funptr c_sizeof c_loc c_funloc c_f_procpointer c_f_pointer c_associated

* additional math function:
acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot

*other elemental functions:
bge bgt ble blt merge_bits dshiftl dshiftr maskl maskr popcnt popp shifta shiftl shiftr leadz trailz


* inquiry functions:
extends_type_of same_type_as new_line storage_size image_index is_contiguous lcobound ucobound is_iostat_end is_iostat_eor

* trafo functions: 
selected_char_kind iall iany iparity norm2 num_images parity this_image findloc null

* extensions modules:
atomic_int_kind atomic_logical_kind character_kinds character_storage_size compiler_options compiler_version error_unit file_storage_size ieee_all ieee_arithmetic ieee_class_type ieee_datatype ieee_denormal ieee_divide ieee_divide_by_zero ieee_down ieee_exceptions ieee_features ieee_features_type ieee_flag_type ieee_halting ieee_inexact ieee_inexact_flag ieee_inf ieee_invalid ieee_invalid_flag ieee_nan ieee_nearest ieee_negative_denormal ieee_negative_inf ieee_negative_normal ieee_negative_zero ieee_other ieee_other_value ieee_overflow ieee_positive_denormal ieee_positive_inf ieee_positive_normal ieee_positive_zero ieee_quiet_nan ieee_rounding ieee_round_type ieee_signaling_nan ieee_sqrt ieee_to_zero ieee_underflow ieee_underflow_flag ieee_up ieee_usual input_unit int16 int32 int64 int8 integer_kinds iostat_end iostat_eor iostat_inquire_internal_unit iso_c_binding iso_fortran_env lock_type logical_kinds numeric_storage_size output_unit real128 real32 real64 real_kinds stat_locked stat_locked_other_image stat_stopped_image stat_unlocked ieee_class ieee_copy_sign ieee_get_flag ieee_get_halting_mode ieee_get_rounding_mode ieee_get_status ieee_get_underflow_mode ieee_is_finite ieee_is_nan ieee_is_negative ieee_is_normal ieee_logb ieee_next_after ieee_rem ieee_rint ieee_scalb ieee_selected_real_kind ieee_set_flag ieee_set_halting_mode ieee_set_rounding_mode ieee_set_status ieee_set_underflow_mode ieee_support_datatype ieee_support_denormal ieee_support_divide ieee_support_flag ieee_support_halting ieee_support_inf ieee_support_io ieee_support_nan ieee_support_rounding ieee_support_sqrt ieee_support_standard ieee_support_underflow_control ieee_unordered ieee_value

*system commands , new atomic:
command_argument_count execute_command_line get_command get_command_argument get_environment_variable cpu_time atomic_define atomic_ref move_alloc

***  And this list can be also incomplete!
Comment 1 Dominik Haumann 2013-09-10 23:03:52 UTC
Can you please edit fortran.xml and post a patch here?
Comment 2 David Gil 2014-04-28 10:51:58 UTC
I will modify the fortran.xml file in the KTextEditor Framework in the following weeks. Once it is merged, I can backport it.
Comment 3 Christoph Cullmann 2016-01-31 16:29:37 UTC
If you still want that, please take a look at 

https://docs.kde.org/stable5/en/applications/katepart/highlight.html

If you provide some file as patch on https://git.reviewboard.kde.org/ we can
have that, otherwise this won't happen.
Comment 4 zmi 2016-02-01 17:46:18 UTC
Created attachment 96958 [details]
Fortran syntax schema

I do not use the newest kate and have only some outdated  "preliminary"  half-working fortran.xml file version 1.13.  
Maybe someone can update it to the actual state
Comment 5 janus 2016-11-26 21:45:49 UTC
(In reply to zmi from comment #4)
> Maybe someone can update it to the actual state

I think the latest version can be found here:

https://cgit.kde.org/ktexteditor.git/tree/src/syntax/data/fortran.xml?id=16b774d31e92a87367bfd3af6eff264e85a2ebd2
Comment 6 janus 2016-11-26 22:23:28 UTC
(In reply to janus from comment #5)
> I think the latest version can be found here:
> 
> https://cgit.kde.org/ktexteditor.git/tree/src/syntax/data/fortran.
> xml?id=16b774d31e92a87367bfd3af6eff264e85a2ebd2

Or rather:

https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/fortran.xml

It seems the syntax files are gone on the latest trunk version of the ktexteditor repo.
Comment 7 janus 2016-12-26 09:37:55 UTC
I have implemented the Fortran 2003 keywords at

https://github.com/janusw/syntax-highlighting/commit/21f5d89423cbebfcbb95f18b577c54c092968949

(will also handle F2008 soon)
Comment 8 Andrew Crouthamel 2018-09-26 22:27:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Andrew Crouthamel 2018-10-27 02:21:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!