This commit is contained in:
Chris Wanstrath 2025-11-24 16:15:37 -08:00
parent 49919e9f85
commit 109c7ff9f6

View File

@ -65,7 +65,7 @@ export class Parser {
return node
}
//
//
// parse foundation nodes - statements, expressions
//
@ -321,7 +321,7 @@ export class Parser {
}
// atoms are the basic building blocks: literals, identifiers, words
atom() {
atom(): SyntaxNode {
if (this.is($T.String))
return this.string()
@ -333,7 +333,7 @@ export class Parser {
}
// blocks in if, do, special calls, etc
// `: something end`
// `: something end`
//
// `blockNode` determines whether we return [colon, BlockNode, end] or
// just a list of statements like [colon, stmt1, stmt2, end]
@ -784,7 +784,7 @@ export class Parser {
return new SyntaxNode('Word', parts[0]!.from, parts.at(-1)!.to)
}
//
//
// helpers
//