[vim/vim] runtime(compiler): fix space escape in pyright (PR #19354)

3 views
Skip to first unread message

Mao-Yining

unread,
Feb 7, 2026, 2:38:07 AM (yesterday) Feb 7
to vim/vim, Subscribed
  • escape the space
  • remove trailing space

@Konfekt are you intentionally keep these commented lines?


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19354

Commit Summary

  • 76d4427 runtime(compiler): fix space escape in pyright

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354@github.com>

Christian Brabandt

unread,
Feb 7, 2026, 5:18:51 AM (yesterday) Feb 7
to vim/vim, Subscribed

@chrisbra commented on this pull request.


In runtime/compiler/pyright.vim:

>  exe 'CompilerSet makeprg=' ..  escape(
         \ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
         \ ' \|"')
 CompilerSet errorformat=
       \%E%f:%l:%c\ -\ error:\ %m,
       \%W%f:%l:%c\ -\ warning:\ %m,
       \%N%f:%l:%c\ -\ note:\ %m,
-      \%C[ \t]\ %.%#,
+      \%C[\ \t]\ %.%#,

did you intentionally include a backslash in the collection?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/review/3766859224@github.com>

Mao-Yining

unread,
Feb 7, 2026, 5:19:42 AM (yesterday) Feb 7
to vim/vim, Subscribed

@mao-yining commented on this pull request.


In runtime/compiler/pyright.vim:

>  exe 'CompilerSet makeprg=' ..  escape(
         \ get(b:, 'pyright_makeprg', get(g:, 'pyright_makeprg', 'pyright')),
         \ ' \|"')
 CompilerSet errorformat=
       \%E%f:%l:%c\ -\ error:\ %m,
       \%W%f:%l:%c\ -\ warning:\ %m,
       \%N%f:%l:%c\ -\ note:\ %m,
-      \%C[ \t]\ %.%#,
+      \%C[\ \t]\ %.%#,

Yes that is the main purpose of this pr.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/review/3766859695@github.com>

Enno

unread,
Feb 7, 2026, 6:36:43 AM (yesterday) Feb 7
to vim/vim, Subscribed

@Konfekt commented on this pull request.


In runtime/compiler/pyright.vim:

>  
 if exists("current_compiler") | finish | endif
 let current_compiler = "pyright"
 
 let s:cpo_save = &cpo
 set cpo&vim
 
-" CompilerSet makeprg=pyright

Yes, these are intentional for easier recognition of makeprg, say, by vim-dispatch


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/review/3766899316@github.com>

Mao-Yining

unread,
Feb 7, 2026, 6:38:35 AM (yesterday) Feb 7
to vim/vim, Push

@mao-yining pushed 1 commit.

  • ed18851 runtime(compiler): fix space escape in pyright


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/before/76d4427b410b1d468bea5c7c8ce6082de27b3580/after/ed188510028f580555befab6dc7714ca2e8c0b87@github.com>

Mao-Yining

unread,
Feb 7, 2026, 6:41:23 AM (yesterday) Feb 7
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19354)

@Konfekt Before this PR, don't you affect by that space without slash?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/c3864350830@github.com>

Enno

unread,
Feb 7, 2026, 7:16:11 AM (yesterday) Feb 7
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#19354)

@mao-yining Thank you for the fix. I wonder myself how escaping got lost


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/c3864396040@github.com>

Christian Brabandt

unread,
Feb 7, 2026, 10:27:03 AM (yesterday) Feb 7
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19354)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/c3864704120@github.com>

Christian Brabandt

unread,
Feb 7, 2026, 10:31:37 AM (yesterday) Feb 7
to vim/vim, Subscribed

Closed #19354 via d15c718.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19354/issue_event/22611229344@github.com>

Reply all
Reply to author
Forward
0 new messages