eirik-kjonstad / modern-fortran-syntax

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

Single "end" should be keyword #33

Closed jwortmann closed 3 years ago

jwortmann commented 3 years ago

A single end is currently highlighted as variable.language.io.fortran, which is a bit annoying because it changes its color in many color schemes while typing.

I think it might be better from a highlighting perspective to include a rule like

- match: \bend\b
  scope: keyword.control.end.fortran

somewhere appropriate to always highlight end as keyword. Or maybe use e.g. the scope keyword.declaration.end.fortran instead.

eirik-kjonstad commented 3 years ago

Yes, this can be annoying. I also noticed it while coding yesterday. I can make a PR with this later tonight (probably).

eirik-kjonstad commented 3 years ago

Resolved with release 1.2