You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Read :def parameter and :var/:final variable names with read_word(),
not read_alpha() — so digits and underscores in names are accepted.
- Capture read_type() return values for :def parameters into
varnode.type_str — so the parsed type is preserved on the AST,
rather than getting discarded.
- Require whitespace immediately before # in separate_nextcmd — to match
Vim9 inline-comment rules.
- Strip a trailing comment from :import lines — so the comment text is
no longer captured in the import spec. (Implemented with a streaming
reader rather than substitute()/slicing — so the Python and JavaScript
transpilers can translate the code without new helpers.)
- Emit type_str in compile_var and compile_final output when present —
so types in declarations like “var count: number = 42” round-trip
through the S-expression form as (var = count: number 42).
- Rename the VAR/FINAL doc-comment fields from .type to .type_str — so
they match the actual node field names.
elifc=="|"orc=="\n"orc=="\""andnotviml_eqregh(self.ea.cmd.flags, "\\<NOTRLCOM\\>") and (self.ea.cmd.name!="@"andself.ea.cmd.name!="*"orself.reader.getpos() !=self.ea.argpos) and (self.ea.cmd.name!="redir"orself.reader.getpos().i!=self.ea.argpos.i+1orpc!="@") orself.vim9scriptandc=="#"andnotviml_eqregh(self.ea.cmd.flags, "\\<NOTRLCOM\\>"):
1259
+
elifc=="|"orc=="\n"orc=="\""andnotviml_eqregh(self.ea.cmd.flags, "\\<NOTRLCOM\\>") and (self.ea.cmd.name!="@"andself.ea.cmd.name!="*"orself.reader.getpos() !=self.ea.argpos) and (self.ea.cmd.name!="redir"orself.reader.getpos().i!=self.ea.argpos.i+1orpc!="@") orself.vim9scriptandc=="#"andiswhite(pc) andnotviml_eqregh(self.ea.cmd.flags, "\\<NOTRLCOM\\>"):
1260
1260
has_cpo_bar=FALSE
1261
1261
# &cpoptions =~ 'b'
1262
1262
if (nothas_cpo_barornotviml_eqregh(self.ea.cmd.flags, "\\<USECTRLV\\>")) andpc=="\\":
0 commit comments