KCL: Allow comments in CallExpressionKw (#5381)
Before, this would not parse: ``` line( end = [44.09, 306.95], // tag this for later tag = $hello ) ``` Now it does.
This commit is contained in:
@ -964,6 +964,7 @@ export function createCallExpressionStdLibKw(
|
||||
end: 0,
|
||||
moduleId: 0,
|
||||
outerAttrs: [],
|
||||
nonCodeMeta: nonCodeMetaEmpty(),
|
||||
callee: {
|
||||
type: 'Identifier',
|
||||
start: 0,
|
||||
@ -1585,7 +1586,7 @@ export async function deleteFromSelection(
|
||||
return new Error('Selection not recognised, could not delete')
|
||||
}
|
||||
|
||||
const nonCodeMetaEmpty = () => {
|
||||
export const nonCodeMetaEmpty = () => {
|
||||
return { nonCodeNodes: {}, startNodes: [], start: 0, end: 0 }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user