Skip to content

Correct syntax parsing #6

Description

@doekman

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.

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