summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-09-26 00:11:05 +0200
committerQrius <[email protected]>2024-09-26 00:11:05 +0200
commitee7facd1db22adb32b5f9077591e4cf2468e32c2 (patch)
tree6c9e6e736f128da0800aec11e68a7ab9c13c36a7
parent90841034879fa0c212875d4e57db337ace5f1432 (diff)
downloadskaldpress-ee7facd1db22adb32b5f9077591e4cf2468e32c2.tar.gz
skaldpress-ee7facd1db22adb32b5f9077591e4cf2468e32c2.zip
Rename verbatum to verbatim
-rw-r--r--smp.12
-rw-r--r--src/macro_processor/macro_processor.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/smp.1 b/smp.1
index 78d2973..f64559c 100644
--- a/smp.1
+++ b/smp.1
@@ -14,7 +14,7 @@ Macros
Includes a file in-place, performing macro-expansion on it.
NOTE, THERE IS NO LOOP PROTECTION HERE!
-.IP "\fBinclude_verbatum(<file>)\fR"
+.IP "\fBinclude_varbatim(<file>)\fR"
Same as \fBinclude\fR, but does not expand macros.
.IP "\fBdefine(<macro_name> [, <macro content>])\fR"
diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs
index 96d5471..93a86af 100644
--- a/src/macro_processor/macro_processor.rs
+++ b/src/macro_processor/macro_processor.rs
@@ -144,8 +144,8 @@ fn smp_builtin_include(
return smp.process_input(&input_file);
}
-/// Include a new file verbatum, don't do ANY additional processing
-fn smp_builtin_include_verbatum(
+/// Include a new file verbatim, don't do ANY additional processing
+fn smp_builtin_include_verbatim (
smp: &mut MacroProcessor,
macro_name: &str,
args: &mut [String],
@@ -300,8 +300,8 @@ impl MacroProcessor {
MacroType::Function(smp_builtin_include),
);
self.define_macro(
- String::from("include_verbatum"),
- MacroType::Function(smp_builtin_include_verbatum),
+ String::from("include_verbatim"),
+ MacroType::Function(smp_builtin_include_verbatim),
);
self.define_macro(
String::from("shell"),