Replies: 4 comments
-
please check the included documentation. In particular you might be interested in |
Beta Was this translation helpful? Give feedback.
-
Have you reached out to the maintainer? Ajit has been maintaining the Fortran runtime files for many years, decades at this point, and some of what you're hoping to fix may not be achievable. You can learn quite a lot from reviewing other syntax files[1] to see how they approach similar problems in other languages. There's some significant holes in the current capabilities and some de facto kludges to work around them. Feel free to just ask specific questions.
|
Beta Was this translation helpful? Give feedback.
-
@chrisbra thanks for the suggestions. They halped a lot. To be clear, my version is highly influenced by his original (I even had an older version, coming from the Neovim installation. He kindly provided me the latest from this repo). I'll attach screenshots comparing the current vs. proposed solution, and everyone can express his opinion. Current syntax highlightingProposedMajour changes
Open to discussion/criticism. Regards |
Beta Was this translation helpful? Give feedback.
-
It seems like an improvement, thanks. Can you please submit a PR if it's ready? It's easier to review the changes with access to the actual syntax file. Can you also include a plain text sample of the example source code? It's Ajit's call to make and things can move a little slowly at times when it comes to runtime file maintenance but, irrespective, it's better to have it queued. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I would like to ask for some good resources from where to learn syntax for vim's syntax files.
I started editing
fortran.vim
, because I guess it lacks some consistency.Got to a decent stage, but I am missing some advanced capabilities in order to make some other things to work.
Any suggestion is more than welcome.
Inded, after I can certainly open a PR if this solution might improve built-in
Fortran
syntax highlighting.Thanks
PS. This also comes because I am actually using Neovim (please, don't blame me), but the syntax that comes with Fortran treesitter is even worse than the built-in one (IMO). So, I thought that providing an excellent built-in syntax highlighting in Vim would be the best option.
Beta Was this translation helpful? Give feedback.
All reactions