Commit 39ca323
fix parser: use context extend from nodes.util
Replace local `context_extend` with `nodes.util.snippet_extend_context`
Previously, when passing a string as the first argument (context), the
parser ignored the 'extend' parameters. The local context_extend
function did not merge extend fields if context was a string. Now, using
node_util.snippet_extend_context ensures that extend parameters are
correctly merged regardless of whether context is a string or a table.1 parent f4ef0d0 commit 39ca323
1 file changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 69 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 70 | | |
83 | 71 | | |
84 | | - | |
| 72 | + | |
85 | 73 | | |
86 | 74 | | |
87 | 75 | | |
| |||
132 | 120 | | |
133 | 121 | | |
134 | 122 | | |
| 123 | + | |
135 | 124 | | |
136 | 125 | | |
137 | | - | |
| 126 | + | |
138 | 127 | | |
139 | 128 | | |
140 | 129 | | |
| |||
0 commit comments