Coder Social home page Coder Social logo

fortran.tmbundle's Introduction

Installation

You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you.

General

License

If not otherwise specified (see below), files in this repository fall under the following license:

Permission to copy, use, modify, sell and distribute this
software is granted. This software is provided "as is" without
express or implied warranty, and with no claim as to its
suitability for any purpose.

An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”.

fortran.tmbundle's People

Contributors

infininight avatar jiho avatar sorbits avatar torsten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fortran.tmbundle's Issues

Fortran lines starting with ! not treated as comments in GitHub markdown

I've followed a trail of packages to determine that this module is what GitHub's syntax highlighter uses to interpret Fortran source. If I've got that wrong, sorry! Feel free to send me off in the right direction.

I noticed that GitHub's Fortran syntax highlighting doesn't recognise lines starting ! as comments. e.g.

c recognised as starting a comment
! is not recognised as starting a comment
x = 1 ! This comment is not recognised either.
! integer function should not be highlighted

GitHub's help on creating and highlighting code blocks has a list of third-party grammars that are used for syntax highlighting, which is what brought me here.

Build and Run in term is very slow

When I Compile and Execute Single "Hello, world" fortran file use ⌘+R, it will take a long time (more than 1 minute) to response and run the terminal to display the result. While if I just Compile it ⌘+B, it will response quickly.

Would you please help? My TextMate is 2.0-alpha.9497.

Many Arguments in Subroutine

I have highlight issues when I write continuation lines in my subroutines. Here is a picture of one of my subroutines:

Selection_001

My goal is to develop several subroutines in ABAQUS CAE, and your syntax highlight save my day! However I wish you can tell me how I fix the problem. Here is another screenshot of ABAQUS CAE subroutine that I have to develop. Instead of orange I get white colors for the arguments.

Selection_002

Keep the good work, you are our Fortran savior ( Fortran users with Sublime Text2)! Please help me!

Indenting/dedenting ignores comments and continuation symbols

I'm using the "punch-card" mode to edit Fortran 77 code. If I select a bock of code and hit Command-], commented lines are indented entirely, including the character in column 1. Similarly, if one line has a continuation character in column 6, it is indented as well.

OMP lines are not recognized

OMP specific lines are not recognized. They begin with "!$" and are stylized like comments, which only start with "!".

OMP specific lines should be formatted differently than comments. Otherwise they are very hard to spot.

Is there anything I can do to fix the problem?

I have included an example of the problem below.

omp

Fortran Modern - No highlighting after line ending with a comment

Highlighting seems to be broken for the following example:

integer, parameter :: my_int_1 = 1 ! in this case "integer" is highlighted [do not skip a line]
integer, parameter :: my_int_2 = 2 ! in this case "integer" is not highlighed

but ...

integer, parameter :: my_int_1 = 1 ! in this case "integer" is highlighted
[skip a line]
integer, parameter :: my_int_2 = 2 ! now "integer" is highlighed

Missing highlights

In "Fortran - Modern", some Fortran keywords are not highlighted, such as "allocatable", namelist.

'!-' Comment

Actually, I am using sublime text 2 but I think it could be helpful.
In 'Fortarn-Modern' syntax highlighting(Fortran - Modern.tmLanguage), '!-' comment does not work accurately.
For example,

!--------------------- !- comment-1
! Some comments
!--------------------- !- comment-2
! Some comments 2

in this case, In 'some comments' and 'some comments 2' are not shown as comments. I switched a section of capturing (^[ \t]+)?(?=!) and that of (^[ \t]+)?(?=!-) , then it worked properly.

Modern Fortran - C in first column treated as a comment on second line

With latest bundle I get the following behavior. In the cases below, the first line is highlighted correctly but the second line is treated as a comment.

C(1,1) = DOT_PRODUCT(E1,SS)
C(1,2) = DOT_PRODUCT(E1,PP)

C(1,1) = DOT_PRODUCT(E1,SS)
[skip a line]
C(1,2) = DOT_PRODUCT(E1,PP)

Highlighting problems with ST3, build 3065

When you write a large number of SUBROUTINE in a Fortran file, there are 2 problems of highlighting:

a minor first one
first
a major second !
second
all is white after ...

a kind of problem of buffer size ? another one ?

thanks !

Line after comment not highlighting correctly

The first word on the line after a comment isn't highlighting correctly, if there is a space before the word it highlights fine, if there is a line between it works fine, just not if it starts straight away.
screenshot 2014-07-24 20 04 32

I've also tested it and it doesn't matter where the comment starts on the line above. Problem in Fortran-Modern using Sublime 2 and 3

Second line of comments on 'Fortran - Modern' not recognized

I use Fortran (Modern) with Sublime Text (now I'm using version 3) and there was just a little glitch handling comments. Look at this example:
Second line not recognized as a comment
As you can see, the second line starts with an exclamation mark, but it's not recognized. But if I start the first line with "! " (including a space), then everything works:
Second line correctly recognized as a comment
If I put a dash after the ! of the second line, it reconizes it as a comment, but the problem goes to the third line:
Third line not recognized as a comment
I don't understand the language of the syntax file, but I've looked at the MinimalFortran package (https://github.com/315234/MinimalFortran) to fix this (this package works great and can be installed using Package Control, but it misses lots of syntaxes). I just changed the

<string>!-</string>

to

<string>[!]</string>

on the "Fortran - Modern.tmLanguage" file and it all worked:
All lines correctly recognized as comments
I don't know if this can cause any conflict anywhere else, so maybe someone can check if this fix works and if so, change the file on the package.

Indentation doesn't work well

I installed Fortran bundle in TextMate2, and write codes in "Fortran - Modern". But the indentation doesn't work well with module block.

When I type "tab" to indent one level, and type some characters, they just jump to the beginning of the line.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.