Skip to content

Backslash breaks highlighting #39

@jpc2

Description

@jpc2

I maintain a bunch of legacy FORTRAN (at least I'm older than it is!)
Finally got around to trying Sublime yesterday. So there is a lot I don't know about it. It is working rather well after about a day...
I install SublimeFortran and it mostly seems to work. However, the code runs on Windows and that means backslashes are generally real. The code often builds a path name and will contain one or more sequences like " ,'\', ". As soon as the highlighting hits the first one , the remainder of the file turns yellow! Yes, if I double the backslashes, the yellow moves to the next one. Vim does not have the problem.
I suspect it is something fairly easy to correct but where?
Here is a short bit that causes the problem

            if (debug_on) then
              user_debug_pathName = trim(user_iniDir)//'\'// &
                    trim(progName)//'_dbg.txt'
            end if
          end if

Everything after the '' turns yellow.

Note: I'm primarily using the Lahey F95 compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions