wwwjfy / emacs-fish

fish-mode for emacs
99 stars 15 forks source link

Escaped quotes break syntax highlighting #31

Closed faho closed 8 years ago

faho commented 8 years ago

From the git completion script:

complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -a 'sync' -d 'Sync submodules\' URL with .gitmodules'
complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -s q -l quiet -d "Only print error messages"

The \' is still recognized as a single quote by the highlighter, causing it to highlight Sync submodules\ as string, and then everything after gitmodules' (including the entire next line) as a string again.

alphapapa commented 8 years ago

Hey, thanks for reporting, turned out to be a very simple fix. :) @wwwjfy can merge when he's ready.

wwwjfy commented 8 years ago

Cool. @alphapapa Thanks a lot!