Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a git-rebase-todo file, parsing for comment syntax is incomplete. Not all comments have correct syntax highlighting. #61

Open
devinrhode2 opened this issue Dec 12, 2022 · 0 comments

Comments

@devinrhode2
Copy link

devinrhode2 commented Dec 12, 2022

Original vscode issue

Inside git-rebase-todo files, there is no syntax highlighting for # comments

CleanShot 2022-08-02 at 22 17 43

Steps to Reproduce:

  1. Ensure clean git status
  2. Create an empty commit git commit -m "asdf" --allow-empty
  3. Start interactive rebase git rebase -i HEAD~1
  4. Note the line with pick 809y2e3 asdf ends with # empty. This is a code comment in this file.
  5. Add a line to the git-rebase-todo file:
  6. exec echo 'asdf' # comment
  7. Close file, to begin rebasing.
  8. Observe that the echo 'asdf' prints a plain asdf and the # comment does not interfere at all.

If you scroll to the bottom of a git-rebase-todo file, you'll see a large block of comments created by git, a guide for doing the interactive rebase. Note that these comments are green (I'm using vscode's default dark theme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant