We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ファイルタイプ vim においてシンタックスがおかしくなります。
let a = ['v!m']
例えば、上のような単純なコマンドを書くと、 'v! の部分が文字列ではなく vimMark 等でハイライトされます。 (ちなみに let a = 'v!m' ではきちんと文字列として表示されました。)
'v!
vimMark
let a = 'v!m'
/syntax/vim.vim L368
syn match vimMark "'[a-zA-Z0-9]\ze[-+,!]" nextgroup=vimFilter,vimMarkNumber,vimSubst
何故 vimMark が適用されるのかはよく分かりませんでした。
9.0.1627
Windows 10 Home 64bit
The text was updated successfully, but these errors were encountered:
vimString の定義より、vimMark の定義のほうが後に記載されているので
help :syn-priority
の 1 番に書かれているのが要因ですね
正しい解決方法かどうかわかりませんが、再度 ~/.vim/after/syntax/vim.vim に次を追記してやれば、vimString が優先されます
syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+
Sorry, something went wrong.
No branches or pull requests
不具合の内容
ファイルタイプ vim においてシンタックスがおかしくなります。
例えば、上のような単純なコマンドを書くと、
'v!
の部分が文字列ではなくvimMark
等でハイライトされます。(ちなみに
let a = 'v!m'
ではきちんと文字列として表示されました。)/syntax/vim.vim L368
何故
vimMark
が適用されるのかはよく分かりませんでした。現象・ログ
Vimのバージョン
9.0.1627
OSの種類/ディストリ/バージョン
Windows 10 Home 64bit
The text was updated successfully, but these errors were encountered: