fix: Handling of quoted strings in YAML #380

Merged
wetneb merged 1 commit from wetneb/mergiraf:379-yaml-quoted-strings into main 2025-05-12 13:48:49 +02:00

View file

@ -0,0 +1,2 @@
l:
- k: "b"

View file

@ -0,0 +1,2 @@
l:
- k: "RIGHT"

View file

@ -0,0 +1,2 @@
l:
- k: "b"

View file

@ -0,0 +1 @@
For https://codeberg.org/mergiraf/mergiraf/issues/379

View file

@ -0,0 +1,2 @@
l:
- k: "RIGHT"

View file

@ -387,7 +387,7 @@ pub static SUPPORTED_LANGUAGES: LazyLock<Vec<LangProfile>> = LazyLock::new(|| {
alternate_names: &[],
extensions: vec!["yml", "yaml"],
language: tree_sitter_yaml::LANGUAGE.into(),
atomic_nodes: vec![],
atomic_nodes: vec!["single_quote_scalar", "double_quote_scalar"],
commutative_parents: vec![CommutativeParent::without_delimiters("block_mapping", "\n")],
signatures: vec![signature("block_mapping_pair", vec![vec![Field("key")]])],
},