There are some edge cases at the moment where comments are not recognised correctly. For example, the two lines below are not displayed correctly.
echo "The #-sign can be used for numbers" #this is a comment
echo "It's $(date #inline comment) at this moment" #another comment
One way to do this is by using a TextMate language file to parse the .ok file. However, this is not a trivial task, but it would fix above edge cases (they are displayed correctly in TextMate).
Another advantage: when this is implemented, positional variables (./commit_push.sh "$1" # commit with comment, rebase and push), the $1 can be shown in a different color. I think this would be helpful.
There are some edge cases at the moment where comments are not recognised correctly. For example, the two lines below are not displayed correctly.
One way to do this is by using a TextMate language file to parse the
.okfile. However, this is not a trivial task, but it would fix above edge cases (they are displayed correctly in TextMate).Another advantage: when this is implemented, positional variables (./commit_push.sh "$1" # commit with comment, rebase and push), the
$1can be shown in a different color. I think this would be helpful.