dparkins / language-fortran

Syntax highlighting for FORTRAN for atom
MIT License
35 stars 16 forks source link

Highlights FORALL statements as errors #90

Closed chris-revell closed 7 years ago

chris-revell commented 7 years ago

screen shot 2016-12-02 at 12 13 29

tomedunn commented 7 years ago

Thanks for posting this!

I'll try to modify the rules to allow for forall statements later today. It should be possible given I was able to do the same thing for if statements.

chris-revell commented 7 years ago

Great. I'd do it myself but have no experience changing syntax packages.

tomedunn commented 7 years ago

From experience, implementing this particular fix would be a really difficult one to tackle as your first try at modifying this syntax package. Thankfully the trick to making it work is already implemented in the rules for the where statement and construct. So it should just be a matter of copying the rules for that and modifying them to work for forall instead.

chris-revell commented 7 years ago

Great work fixing that so quickly. I'll wait for the update to come through Atom.