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

Fails to parse let mapleader #41

Open
jonhoo opened this issue Jan 21, 2024 · 2 comments
Open

Fails to parse let mapleader #41

jonhoo opened this issue Jan 21, 2024 · 2 comments

Comments

@jonhoo
Copy link

jonhoo commented Jan 21, 2024

$ cargo r --release -- --file (echo 'let mapleader = "\\<Space>"' | psub) --outdir converted
    Finished release [optimized] target(s) in 0.03s
     Running `/home/jon/.cargo-target/release/vim9jit --file /tmp/.psub.RwbSA8XMXW --outdir converted`
thread 'main' panicked at '
Failed to parse command.
Current Commands:Program {
    commands: [],
}.
Error: No prefix function: Parser {
    lexer: Lexer { position: 27, read_position: 28, ch: None },
    token_buffer: RefCell {
        value: [
            Token(Equal, "=", (0,14)->(0,15)),
            Token(DoubleQuoteString, "\\<Space>", (0,17)->(0,24)),
            Token(EndOfLine, "\n", (0,26)->(0,26)),
        ],
    },
}', crates/vim9-parser/src/lib.rs:2559:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@tjdevries
Copy link
Owner

I think this will work now after latest commit, it has some problems with parsing non-vim9script code, particularly at the toplevel. But I think this would be fine now.

Just wondering why you were trying it out btw as well :) just out of curiousity.

@jonhoo
Copy link
Author

jonhoo commented Mar 16, 2024

Heh, to try and automate my way out of what ended up being a very manual jonhoo/configs@9f771e0 + jonhoo/configs@5ee3683 😅

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