diff --git a/docs/assets/js/playground.js b/docs/assets/js/playground.js
index 6801d699..4d02c2ea 100644
--- a/docs/assets/js/playground.js
+++ b/docs/assets/js/playground.js
@@ -135,7 +135,13 @@ let tree;
const start = cursor.startPosition;
const end = cursor.endPosition;
const id = cursor.nodeId;
- row = `
${' '.repeat(indentLevel)}
${displayName} [${start.row}, ${start.column}] - [${end.row}, ${end.column}])`;
+ let fieldName = cursor.currentFieldName();
+ if (fieldName) {
+ fieldName += ': ';
+ } else {
+ fieldName = '';
+ }
+ row = `
${' '.repeat(indentLevel)}${fieldName}
${displayName} [${start.row}, ${start.column}] - [${end.row}, ${end.column}])`;
finishedRow = true;
}