Nevensky / SublimeFortran

Fortran syntax highlighting for Sublime Text 3
47 stars 30 forks source link

Highlighting Intrinsic functions without () #7

Closed tyleracorn closed 8 years ago

tyleracorn commented 8 years ago

Hi! First off, thanks for putting this together! This is quite a bit better then the other fortran syntax option in syblime3 and I'm glad I recently found this. One thing I was wondering though, would it be simple to change the syntax so that it finds intrinsic function names that don't have the associated () with them? for instance: find "int " as well as "int()"? This would be helpful in keeping us from using variable names that are also intrinsic function names. Cheers,

315234 commented 8 years ago

I agree that we shouldn't be using intrinsic functions as identifiers, but unfortunately lots of people do it anyway, so I think only matching them as intrinsics when there is a parenthesis or the call keyword is a sensible approach for now.