Editor does not color tcsh correctly


#1

The editor seems confused by cat -<<EOF> statements in tcsh. In my script, everything looks fine in the editor up to that point. Then:


Everything below that (~600 more lines, including more cat -<<EOF> statements) is green.

This seems like a bug to me, but I’d be happy to learn of a workaround too.


#2

What language package is active there? You can see the active language by looking at the bottom right-hand corner of the Atom window.


#3

Shell Script


#4

Perhaps you should look into another grammar.
How about…

Shell script language support in Atom.
Fork of language-shellscript, with extra support for common Unix commands.

https://atom.io/packages/language-unix-shell


#5

This is what that line looks like from the DOM side:

I’m not familiar with heredoc so I can’t explain why <<EOF> matches it.


#6

On my list to look at. In the future it would help if you additionally provided a text version for easy copy/pasting.