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

Unexpected Token Error For Commented Dictionaries #76

Closed
TerryChau opened this issue May 6, 2022 · 1 comment
Closed

Unexpected Token Error For Commented Dictionaries #76

TerryChau opened this issue May 6, 2022 · 1 comment

Comments

@TerryChau
Copy link

TerryChau commented May 6, 2022

        let g:ale_linters = {
                    \ 'asm':['gcc'],
                    \ 'c':['clangd'],
                    \ 'cpp': ['clangd'],
                    "\ 'c':['gcc','clangd'],
                    "\ 'cpp': ['gcc', 'clangd'],
                    \ 'css':['stylelint'],               <-- lines with unexpected token: <EOL> error at ]
                    \ }

When I comment out certain lines (lines 5-6) in a dictionary, the vim-language-server reports an "unexpected token: <EOL>" error in the subsequent line. However, to the best of my knowledge, the vim script above is valid. Can this error removed?

I am using the following version of vim-language-server with ALE.

pkgname=vim-language-server
pkgver=2.2.10
pkgrel=1
pkgdesc="VimScript language server"
arch=('any')
url="https://github.com/iamcco/vim-language-server"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=("$pkgname-$pkgver.tgz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
sha256sums=('ee09909846bc02880e240b3b5c682ef18235c97243ab24227034f2f27530a771')

@iamcco
Copy link
Owner

iamcco commented May 10, 2022

duplicate #43

@iamcco iamcco closed this as completed May 10, 2022
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

2 participants