eirik-kjonstad / modern-fortran-syntax

Modern Fortran syntax highlighting for Sublime Text 3/4
MIT License
10 stars 2 forks source link

Fix function calls with object arguments #44

Closed jwortmann closed 3 years ago

jwortmann commented 3 years ago

Fix #35.

I guess the issues don't get auto-closed after merge because the PRs target the development branch, and not the default branch of the repository.

jwortmann commented 3 years ago

Yes, I think just a lookahead is not sufficient to detect all possible ways where an identifier is an object. Maybe it's possible with branch and fail in ST4, as described in https://www.sublimetext.com/docs/syntax.html, but that wouldn't be backwards compatible anyways. But I think the regex pattern used now should at least give correct highlighting in most of the cases.