Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve fypp syntax highlighting #617

Open
1 task done
gnikit opened this issue Aug 14, 2022 · 0 comments
Open
1 task done

feat: improve fypp syntax highlighting #617

gnikit opened this issue Aug 14, 2022 · 0 comments
Assignees

Comments

@gnikit
Copy link
Member

gnikit commented Aug 14, 2022

Is there an existing request for this?

  • I have searched the existing issues

Feature Request

We don't handle very well the fypp syntax when it comes to syntax-highlighting. e.g.

#:set data_names = [ 'eg1', 'eg2' ]
module min_eg
  implicit none
  private

#:for dname in data_names

  public :: eg_${dname}$_t
  type :: eg_${dname}$_t
  contains
    procedure :: do_something => do_something_${dname}$
  end type eg_${dname}$_t

#:endfor

contains

#:for dname in data_names
  subroutine do_something_${dname}$ (this)
    implicit none
    class(eg_${dname}$_t) :: this
    print*, "this subroutine has no syntax highlighting with either extension"
  end subroutine do_something_${dname}$
#:endfor

end module min_eg

We will have to add a textmate file that inherits the default FreeForm syntax and then extends it when certain patterns are encountered. Link to fypp syntax: https://fypp.readthedocs.io/en/stable/fypp.html#preprocessor-language

CC @aradi

@gnikit gnikit self-assigned this Aug 14, 2022
@gnikit gnikit added this to To do in Version v4.0.0 via automation Aug 14, 2022
@gnikit gnikit modified the milestone: Release: v4.0.0 Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant