Skip to content

Commit b02b0f5

Browse files
dundargoctjdevries
authored andcommitted
docs: misc
1 parent bff1980 commit b02b0f5

6 files changed

Lines changed: 9 additions & 11 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ the rest of the vimscript to Neovim's vimscript interpreter. In general, this re
77
style syntax, as well as doing things with `import` and a few more items.
88

99
For examples of some of the "transpiled" code, you can check: ./crates/vim9-gen/testdata/output/
10-
11-
Subject to change. We'll be exploring this quite a bit over the next month (Sept 2022 - Oct 2022)

crates/vim9-gen/src/call_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn mutates(expr: &CallExpression, _data: &FunctionData) -> Option<VimFuncMut
6363
match expr.name() {
6464
Some(ident) => match ident {
6565
Identifier::Raw(raw) => match raw.name.as_str() {
66-
// We have overriden insert
66+
// We have overridden insert
6767
"add" | "insert" | "extend" => None,
6868

6969
"remove" => Some(VimFuncMutability {

crates/vim9-gen/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ macro_rules! find_scope {
147147
let scope = $state.find_relevant_scope(|s| matches!(s.kind, $m));
148148
match scope {
149149
Some(scope) => scope,
150-
None => panic!("Unexpect failure to find scope: {:#?}", $state),
150+
None => panic!("Unexpected failure to find scope: {:#?}", $state),
151151
}
152152
}};
153153
}

crates/vim9-gen/src/lua/fn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ do
4747
-- We do have vim9script ;) that's this plugin
4848
['vim9script'] = true,
4949

50-
-- Include some vim patches that are sometimes required by variuos vim9script plugins
50+
-- Include some vim patches that are sometimes required by various vim9script plugins
5151
-- that we implement via vim9jit
5252
[ [[patch-8.2.2261]] ] = true,
5353
[ [[patch-8.2.4257]] ] = true,

crates/vim9-parser/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ impl Signature {
701701

702702
Ok(Self {
703703
open: parser.ensure_token(TokenKind::LeftParen)?.into(),
704-
params: parser.parse_paramter_list()?,
704+
params: parser.parse_parameter_list()?,
705705
close: parser.expect_token(TokenKind::RightParen)?.into(),
706706
})
707707
}
@@ -1364,7 +1364,7 @@ pub enum Precedence {
13641364
Product,
13651365
Modulo,
13661366

1367-
/// PrefixExpr7 has a separate precendence:
1367+
/// PrefixExpr7 has a separate precedence:
13681368
///
13691369
/// When using -> the |expr7| operators will be applied first, thus:
13701370
/// -1.234->string()
@@ -2145,7 +2145,7 @@ impl<'a> Parser<'a> {
21452145

21462146
_ => {
21472147
return Err(anyhow::anyhow!(
2148-
"Unexpected precendence kind: {:?} // {:#?}",
2148+
"Unexpected precedence kind: {:?} // {:#?}",
21492149
kind,
21502150
self
21512151
));
@@ -2208,7 +2208,7 @@ impl<'a> Parser<'a> {
22082208
}
22092209

22102210
fn parse_expression(&self, prec: Precedence) -> Result<Expression> {
2211-
// info!("parseing expr: {:#?}", prec);
2211+
// info!("parsing expr: {:#?}", prec);
22122212

22132213
self.skip_whitespace();
22142214

@@ -2647,7 +2647,7 @@ impl<'a> Parser<'a> {
26472647
self.list_parser(k, KeyValue::parse)
26482648
}
26492649

2650-
fn parse_paramter_list(&self) -> Result<Vec<Parameter>> {
2650+
fn parse_parameter_list(&self) -> Result<Vec<Parameter>> {
26512651
self.list_parser(TokenKind::RightParen, |p| Parameter::parse(self))
26522652

26532653
// let mut params = Vec::new();

lua/_vim9script.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ vim9['fn'] = (function()
312312
-- We do have vim9script ;) that's this plugin
313313
['vim9script'] = true,
314314

315-
-- Include some vim patches that are sometimes required by variuos vim9script plugins
315+
-- Include some vim patches that are sometimes required by various vim9script plugins
316316
-- that we implement via vim9jit
317317
[ [[patch-8.2.2261]] ] = true,
318318
[ [[patch-8.2.4257]] ] = true,

0 commit comments

Comments
 (0)