mirror of
https://codeberg.org/icewind/php-literal-parser.git
synced 2026-06-03 10:34:08 +02:00
Revert "switch back to source-span for now"
This reverts commit 9310fcde66.
This commit is contained in:
parent
ba0538194b
commit
e5d94364cc
4 changed files with 86 additions and 129 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use main_error::MainError;
|
||||
use miette::DiagnosticResult;
|
||||
use php_literal_parser::from_str;
|
||||
use serde_derive::Deserialize;
|
||||
|
||||
|
|
@ -8,7 +8,7 @@ struct Target {
|
|||
bars: Vec<u8>,
|
||||
}
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
fn main() -> DiagnosticResult<()> {
|
||||
let target = from_str(r#"["foo" => true, "bars" => [1, 2, 3, 4]]"#)?;
|
||||
|
||||
assert_eq!(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use main_error::MainError;
|
||||
use miette::DiagnosticResult;
|
||||
use php_literal_parser::{from_str, Value};
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
fn main() -> DiagnosticResult<()> {
|
||||
let source = r###"
|
||||
array (
|
||||
"double" => "quote",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue