jhclark / ducttape

A workflow management system for researchers who heart Unix.
http://jhclark.github.com/ducttape
Other
118 stars 14 forks source link

Syntax highlighting error: /* comments */ versus bash globs /* #69

Open jhclark opened 12 years ago

jhclark commented 12 years ago

I just noticed a syntax highlighting issue that might be a case against /* comments */.

Consider the following bash glob:

tar -xvzf file.tgz dir/*
ls file.tgz

Under current vim/emacs syntax highlighting, "ls file.tgz" and the rest of the file is highlighted. This is because in ducttape syntax, /* denotes the beginning of a comment. However, this code is in a bash context. Yet, I'm not aware of any way of switching highlighting contexts in vim/emacs. Do you know if this exists? If not, is this a reason to exclude such comments in ducttape?

At the moment, this issue is intended as a discussion, not an action item.

dowobeha commented 12 years ago

I've encountered this problem as well. This is indeed very annoying.

One temporary fix would be to disable /* */ as a highlightable item in the vim/emacs setup. So, ducttape could continue processing multiline comments, but they wouldn't be highlighted.

jhclark commented 12 years ago

Should we just kill off /* */ entirely?

dowobeha commented 12 years ago

I don't know. I kind of like having it. Hmmm...

dowobeha commented 12 years ago

@jhclark, I propose we remove this issue from the v0.2 milestone. The highlighting is no longer an issue in emacs.

jhclark commented 12 years ago

OK, postponed.