diff options
Diffstat (limited to 'src/eval/methods.rs')
| -rw-r--r-- | src/eval/methods.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval/methods.rs b/src/eval/methods.rs index bfe9b0e4..b88bca50 100644 --- a/src/eval/methods.rs +++ b/src/eval/methods.rs @@ -154,6 +154,7 @@ pub fn call( match method { "page" => vm.vt.introspector.page(location).into(), "position" => vm.vt.introspector.position(location).into(), + "page-numbering" => vm.vt.introspector.page_numbering(location), _ => return missing(), } } else { @@ -308,7 +309,7 @@ pub fn methods_on(type_name: &str) -> &[(&'static str, bool)] { ], "function" => &[("where", true), ("with", true)], "arguments" => &[("named", false), ("pos", false)], - "location" => &[("page", false), ("position", false)], + "location" => &[("page", false), ("position", false), ("page-numbering", false)], "counter" => &[ ("display", true), ("at", true), |
