Remove some underscores from wasm schema to match elisp.

This commit is contained in:
Tom Alexander
2023-12-29 15:41:41 -05:00
parent adcd0de7e4
commit 5d31db39a4
3 changed files with 9 additions and 5 deletions

View File

@@ -63,6 +63,7 @@ use super::WasmStandardProperties;
#[derive(Debug, Serialize, Deserialize)]
pub struct WasmAstNodeWrapper<I> {
#[serde(rename = "ast-node")]
pub(crate) ast_node: String,
#[serde(rename = "standard-properties")]
pub(crate) standard_properties: WasmStandardProperties,

View File

@@ -10,8 +10,11 @@ use crate::types::StandardProperties;
pub(crate) struct WasmStandardProperties {
pub(crate) begin: usize,
pub(crate) end: usize,
#[serde(rename = "contents-begin")]
pub(crate) contents_begin: Option<usize>,
#[serde(rename = "contents-end")]
pub(crate) contents_end: Option<usize>,
#[serde(rename = "post-blank")]
pub(crate) post_blank: PostBlank,
}